Skip to content

Conversation

@danielgranat
Copy link

Hi, I had some issue with 'this' being undefined when loading the file using parcel.
I think it has to do with the following:

"The this keyword could be used inside functions running in non–strict mode, but this will be undefined in Modules and inside functions running in strict mode. "

See here- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#description

This solved my issue.

@fifzteen
Copy link

same issue on esbuild. I hope this nice PR to be pulled:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants