Skip to content

Commit

Permalink
Fix peer dependency (#82)
Browse files Browse the repository at this point in the history
* Added possibility to rename control attributes.

* Resolve peer dep conflict. Revert to webpack ^4.0
  • Loading branch information
mhillerstrom authored Dec 28, 2021
1 parent 61e1f70 commit 1a2c89e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"shx": "^0.3.3",
"tslint": "^6.1.3",
"typescript": "^4.1.2",
"webpack": "^5.10.0",
"webpack": "^4.0",
"webpack-merge": "^5.5.0"
}
}
26 changes: 17 additions & 9 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,23 @@ function createConfig (name, isProduction = false) {
const entry = 'index';
const commons = {
entry: `./packages/${name}/lib/${entry}.js`,
resolve: {
fallback: {
"util": false,
"fs": false,
"assert": false,
"stream": false,
"constants": false,
"path": false
}
// resolve: { // webpack ^5.0.0 syntax
// fallback: {
// "util": false,
// "fs": false,
// "assert": false,
// "stream": false,
// "constants": false,
// "path": false
// }
// },
node: {
"util": 'empty',
"fs": 'empty',
"assert": 'empty',
"stream": 'empty',
"constants": 'empty',
"path": 'empty'
},
output: {
library: `feathersjsOffline${name.substr(0,1).toUpperCase()}${name.substr(1)}`,
Expand Down

0 comments on commit 1a2c89e

Please sign in to comment.