Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve dependency management #825

Merged
merged 1 commit into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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