Skip to content

Commit

Permalink
RC #121 - Testing adding react-syntax-highlighter to nodeExternals al…
Browse files Browse the repository at this point in the history
…low list in webpack.config
  • Loading branch information
dleadbetter committed Apr 8, 2022
1 parent 7c1aa48 commit 106cafd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ module.exports = {
mode,
devtool,
entry: './src/index.js',
externals: [nodeExternals()],
externals: [nodeExternals({
allowlist: ['react-syntax-highlighter']
})],
externalsPresets: { node: true },
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'build'),
Expand Down

0 comments on commit 106cafd

Please sign in to comment.