Skip to content

Commit

Permalink
Merge pull request #2338 from snyk/chore/add-node-loader
Browse files Browse the repository at this point in the history
chore: add node-loader
  • Loading branch information
JackuB authored Nov 12, 2021
2 parents b826c53 + 15a004b commit 38d4008
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 4 deletions.
1 change: 1 addition & 0 deletions check-dependencies.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const config: Options = {
'tap-junit', // used in circleci
'lerna', // used in circleci
'ts-loader', // used by webpack
'node-loader', // used by webpack
'webpack-cli', // used in package.json scripts
'pkg', // used for binary builds
],
Expand Down
79 changes: 79 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"lodash": "^4.17.20",
"mock-fs": "^4.13.0",
"nock": "^10.0.6",
"node-loader": "^2.0.0",
"npm-run-all": "^4.1.5",
"pkg": "^5.3.2",
"prettier": "^1.18.2",
Expand Down
6 changes: 2 additions & 4 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ module.exports = {
exclude: ['/node_modules'],
},
{
// `./node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node` is a binary file introduced
// by snyk-docker-plugin -> docker-modem@3
test: /ssh2\/lib\/protocol\/crypto\/build\/Release\/sshcrypto\.node/i,
type: 'asset/resource',
test: /\.node$/,
loader: 'node-loader',
},
],
},
Expand Down

0 comments on commit 38d4008

Please sign in to comment.