From ff4f967363af47f4c2dde6b158dd288259721716 Mon Sep 17 00:00:00 2001 From: Wills Bithrey Date: Wed, 25 Sep 2019 15:28:38 +0100 Subject: [PATCH] Prevent syntax error in generated bundles. Fixes #1 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index aaa23b9..80e024a 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ class ExportParserPlugin { constructor() {} apply(parser) { parser.plugin('export', () => { - parser.state.current.addVariable('', '', []); + parser.state.current.addVariable('__webpack_wrapper_plugin__', 'true', []); }); } }