-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump level from 7 to 8 and remove polyfills
- Loading branch information
Showing
4 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,16 @@ | ||
const path = require('path') | ||
const webpack = require('webpack') | ||
|
||
module.exports = { | ||
entry: './src/main.js', | ||
output: { | ||
filename: 'main.js', | ||
path: path.resolve(__dirname, 'dist'), | ||
path: path.join(__dirname, 'dist'), | ||
}, | ||
plugins: [ | ||
// Webpack 5 no longer polyfills 'process' | ||
new webpack.ProvidePlugin({ | ||
process: 'process/browser', | ||
}), | ||
], | ||
mode: 'production', | ||
resolve: { | ||
fallback: { | ||
// BREAKING CHANGE: webpack < 5 used to include polyfills for | ||
// node.js core modules by default. This is no longer the | ||
// case. | ||
'util': false, | ||
'assert': false | ||
alias: { | ||
// Skip buffer dependency of abstract-level | ||
buffer: false | ||
} | ||
} | ||
}; |