Skip to content

Commit

Permalink
RC #121 - Testing using UMD target instead of commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Apr 8, 2022
1 parent 6cf2707 commit 027654c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ module.exports = {
mode,
devtool,
entry: './src/index.js',
externals: [nodeExternals({
allowlist: ['react-syntax-highlighter']
})],
externals: [nodeExternals()],
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'build'),
libraryTarget: 'commonjs2'
libraryTarget: 'umd'
},
plugins: [
new CleanWebpackPlugin(),
Expand All @@ -32,7 +30,7 @@ module.exports = {
module: {
rules: [{
test: /\.(js|jsx)$/,
exclude: /node_modules\/(?!(react-syntax-highlighter)\/).*/,
include: path.resolve(__dirname, './src'),
use: ['babel-loader']
}, {
test: /\.css$/,
Expand Down

0 comments on commit 027654c

Please sign in to comment.