Closed WaqasIbrahim closed 6 years ago
I think it has something to do with the integration between webpack and amd modules. It happened to me with other packages.
You can disable amd support in webpack config and it will probably fix the problem. But it may break another dependency. So I will check if putting the commonjs definition first fixes the problem.
If only es2015 modules work, then I will create a separate esm file.
Hi, I just tested and it worked after disabling amd.
Fixed in 797b0af2e4c4094b11175180de29685dba2971bb
Hi, I am using babel + webpack and I used import to include chrome promise.
This is what the transpiled code looks like:
https://babeljs.io/faq/#why-is-this-being-remapped-to-undefined-
Is there any way to fix this without disabling strict mode?