zorro-ryp/Alejandro

@mischnic, thanks for the reply!

zorro-ryp opened this issue · 0 comments

@mischnic, thanks for the reply!

This should not have anything to do with ES2015 modules or strict mode, because i'm not referencing code that uses them.

console.log(this); //should log the window object.
<script src="./external-script.js"></script>

To be explicit, the above code works properly on its own, but breaks when processed through parcel.

Assuming your sources are correct, by treating all code as as an ES2015 module when it is isn't, parcel potentially breaks existing code. It looks like the solution would be to prevent this from happening.

Originally posted by @johnhenry in parcel-bundler/parcel#834 (comment)