Skip to content

Commit

Permalink
RC #121 - Updating webpack to transpile react-syntax-highlighter
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Apr 8, 2022
1 parent a8b8338 commit 6cf2707
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ module.exports = {
mode,
devtool,
entry: './src/index.js',
externals: [nodeExternals()],
externals: [nodeExternals({
allowlist: ['react-syntax-highlighter']
})],
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'build'),
Expand All @@ -30,7 +32,7 @@ module.exports = {
module: {
rules: [{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
exclude: /node_modules\/(?!(react-syntax-highlighter)\/).*/,
use: ['babel-loader']
}, {
test: /\.css$/,
Expand Down

0 comments on commit 6cf2707

Please sign in to comment.