Skip to content

Commit

Permalink
test: add test for experiments: { outputModule: true }
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Feb 3, 2021
1 parent a43ab72 commit 60a6ef8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/basic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2567,4 +2567,21 @@ describe('HtmlWebpackPlugin', () => {
]
}, ['<head><script defer="defer" src="index_bundle.js"></script><link href="styles.css" rel="stylesheet"></head>'], 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({
})
]
}, ['<script defer="defer" src="index_bundle.js"></script>'], null, done);
});
});

0 comments on commit 60a6ef8

Please sign in to comment.