closure-loader icon indicating copy to clipboard operation
closure-loader copied to clipboard

How to disable strict mode with loader?

Open bencripps opened this issue 8 years ago • 1 comments

When a file is imported with strict mode enabled, the resolution fails.

eval('var x=__merge(x||window.x||{},{"soy":{"examples":{"thing":{}},"thing":{}}});var soy=__merge(soy||window.soy||{},{});var soydata=__merge(soydata||window.soydata||{},{});');

It looks like this line is executing correctly, however, when I try to assign soy on the very next line, an error is thrown because strict mode is prepended to the file via webpack.

bencripps avatar Jan 05 '18 04:01 bencripps

Can you please provide some example code (before transformation via the loader) to reproduce this?

eXaminator avatar Mar 17 '18 19:03 eXaminator