shutterstock / node-common-errors

Common error classes and utility functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

classGeneratorFn fail in web extensions

phlax opened this issue · comments

commented

I tried using this package in a web extension, but the eval in classGeneratorFn gets blocked by CSP in web extensions

Good to know.
Would it solve your problem if I continue to include that function as is (without calling it except for in tests)? I can then pre-generate the classes into files before publishing to npm?

commented

i guess so, it was on import that triggered the error