diff --git a/webpack.common.js b/webpack.common.js index 60ff23d90..dd4de4e40 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -136,12 +136,7 @@ module.exports = { { context: path.join(__dirname, 'node_modules/reveal.js'), from: 'plugin', - to: 'reveal.js/plugin', - transform (content, path) { - // The marked.js script wants a 'exports' variable and is referenced from plugin/notes/notes.html - // we copy, so just patch that to give it one. - return content.toString().replace('', '') - } + to: 'reveal.js/plugin' } ] }), diff --git a/webpack.prod.js b/webpack.prod.js index 5a7914798..cacdf30ba 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -17,8 +17,8 @@ module.exports = [ minimizer: [ new EsbuildPlugin({ target: 'es2015', - format: "cjs", - exclude: ['MathJax/extensions/a11y/mathmaps'] + format: 'cjs', + exclude: ['MathJax/extensions/a11y/mathmaps', 'reveal.js/plugin/markdown/marked.js'] }) ], splitChunks: { @@ -33,7 +33,7 @@ module.exports = [ minimizer: [ new EsbuildPlugin({ target: 'es2015', - format: "cjs" + format: 'cjs' }), new OptimizeCSSAssetsPlugin({}) ]