Skip to content

Commit

Permalink
fix: set target to node
Browse files Browse the repository at this point in the history
This should make webpack use `require` to load chunks
  • Loading branch information
err53 committed Nov 16, 2020
1 parent af5b7be commit 8c00ba5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = [
{
entry: './src/index.js',
externals: [nodeExternals()],
target: 'node',
output: {
filename: 'index.js',
libraryTarget: 'commonjs2',
Expand Down

0 comments on commit 8c00ba5

Please sign in to comment.