Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

How to disable strict mode with loader? #34

Open
bencripps opened this issue Jan 5, 2018 · 1 comment
Open

How to disable strict mode with loader? #34

bencripps opened this issue Jan 5, 2018 · 1 comment

Comments

@bencripps
Copy link

bencripps commented Jan 5, 2018

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.

@eXaminator
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants