Skip to content

Commit

Permalink
Move dependencies into dev section, limit polyfills (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed May 16, 2023
1 parent 89e71ac commit 5613dca
Show file tree
Hide file tree
Showing 3 changed files with 477 additions and 480 deletions.
4 changes: 3 additions & 1 deletion config/webpack.config.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ const config = {
}),
// Ignore native modules (sodium-native)
new webpack.IgnorePlugin({ resourceRegExp: /sodium-native/ }),
new NodePolyfillPlugin(),
new NodePolyfillPlugin({
includeAliases: ["http", "https"] // others aren't needed
}),
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer']
})
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"build": "cross-env NODE_ENV=development yarn _build",
"build:prod": "cross-env NODE_ENV=production yarn _build",
"build:node": "babel --extensions '.ts' --out-dir lib/ src/",
"build:browser": "webpack -c config/webpack.config.browser.js",
"build:browser": "webpack --stats-modules-space 999 -c config/webpack.config.browser.js",
"clean": "rm -rf lib/ dist/ coverage/ .nyc_output/",
"docs": "jsdoc -c ./config/.jsdoc.json --verbose",
"test": "yarn test:node && yarn test:integration && yarn test:browser",
Expand Down Expand Up @@ -85,7 +85,11 @@
"@istanbuljs/nyc-config-babel": "3.0.0",
"@stellar/tsconfig": "^1.0.2",
"@types/detect-node": "^2.0.0",
"@types/eventsource": "^1.1.2",
"@types/lodash": "^4.14.192",
"@types/node": "^18.15.11",
"@types/randombytes": "^2.0.0",
"@types/urijs": "^1.19.6",
"@typescript-eslint/parser": "^5.58.0",
"axios-mock-adapter": "^1.21.4",
"babel-loader": "^9.1.2",
Expand Down Expand Up @@ -126,24 +130,20 @@
"taffydb": "^2.7.3",
"terser-webpack-plugin": "^5.3.7",
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
"webpack": "^5.77.0",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"@types/eventsource": "^1.1.2",
"@types/node": "^18.15.11",
"@types/randombytes": "^2.0.0",
"@types/urijs": "^1.19.6",
"axios": "1.3.6",
"bignumber.js": "^9.1.1",
"detect-node": "^2.0.4",
"es6-promise": "^4.2.4",
"eventsource": "^2.0.2",
"lodash": "^4.17.21",
"randombytes": "^2.1.0",
"stellar-base": "v9.0.0-beta.1",
"stellar-base": "v9.0.0-beta.2",
"toml": "^3.0.0",
"typescript": "^5.0.4",
"urijs": "^1.19.1",
"utility-types": "^3.7.0"
}
Expand Down
Loading

0 comments on commit 5613dca

Please sign in to comment.