Clear webpack Node.js polyfills
This commit is contained in:
@@ -56,7 +56,6 @@
|
||||
"@types/node": "^15.0.1",
|
||||
"@typescript-eslint/eslint-plugin": "^4.22.1",
|
||||
"@typescript-eslint/parser": "^4.22.1",
|
||||
"crypto-browserify": "^3.12.0",
|
||||
"eslint": "^7.5",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-import-resolver-node": "^0.3.4",
|
||||
@@ -73,12 +72,10 @@
|
||||
"karma-jasmine": "^4.0.1",
|
||||
"karma-jasmine-html-reporter": "^1.5.4",
|
||||
"nyc": "^15.1.0",
|
||||
"path-browserify": "^1.0.1",
|
||||
"prettier": "^2.0.5",
|
||||
"readonly-date": "^1.0.0",
|
||||
"ses": "^0.11.0",
|
||||
"source-map-support": "^0.5.19",
|
||||
"stream-browserify": "^3.0.0",
|
||||
"ts-node": "^8",
|
||||
"typedoc": "^0.20",
|
||||
"typescript": "~4.0",
|
||||
|
||||
@@ -15,17 +15,15 @@ module.exports = [
|
||||
path: distdir,
|
||||
filename: "tests.js",
|
||||
},
|
||||
plugins: [
|
||||
new webpack.EnvironmentPlugin({ LAUNCHPAD_ENABLED: "" }),
|
||||
new webpack.ProvidePlugin({
|
||||
Buffer: ["buffer", "Buffer"],
|
||||
}),
|
||||
],
|
||||
plugins: [new webpack.EnvironmentPlugin({ LAUNCHPAD_ENABLED: "" })],
|
||||
resolve: {
|
||||
fallback: {
|
||||
crypto: require.resolve("crypto-browserify"),
|
||||
path: require.resolve("path-browserify"),
|
||||
stream: require.resolve("stream-browserify"),
|
||||
buffer: false,
|
||||
crypto: false,
|
||||
events: false,
|
||||
path: false,
|
||||
stream: false,
|
||||
string_decoder: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user