node-common-errors icon indicating copy to clipboard operation
node-common-errors copied to clipboard

classGeneratorFn fail in web extensions

Open phlax opened this issue 8 years ago • 2 comments

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

phlax avatar Jan 04 '18 13:01 phlax

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?

dfenster avatar Jan 05 '18 16:01 dfenster

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

phlax avatar Jan 05 '18 17:01 phlax