diff --git a/spec/basic.spec.js b/spec/basic.spec.js index 107925ef..d31ba5e2 100644 --- a/spec/basic.spec.js +++ b/spec/basic.spec.js @@ -2567,4 +2567,21 @@ describe('HtmlWebpackPlugin', () => { ] }, [''], null, done); }); + + it('should allow to use experiments:{outputModule:true}', done => { + testHtmlPlugin({ + mode: 'production', + entry: path.join(__dirname, 'fixtures/index.js'), + output: { + path: OUTPUT_DIR, + filename: 'index_bundle.js', + module: true + }, + experiments: { outputModule: true }, + plugins: [ + new HtmlWebpackPlugin({ + }) + ] + }, [''], null, done); + }); });