Closed GodBleak closed 1 year ago
I don't see the use of new Function
anywhere. Is it perhaps your build tool adding that?
Almost ready to release classy-solid on stage 3 decorators. I've checked locally, and there are no uses of new Function
.
The upcoming release will no longer support legacy decorators, only the new stage 3 decorators (https://github.com/lume/classy-solid/pull/4), to keep things simple in the implementation. Then we'll also need to update Vite docs to use the latest Babel decorator config.
Closing since it won't be relevant, and maybe even the problem goes away whatever it was (I'm guessing build tool thing?).
I think it's actually the dependency lowclass
that's causing it, these lines particularly lowclass/Class.ts:81
, lowclass/Class.ts:298
, and lowclass/Class.ts:540
I'm unable to use classy while using the
script-src
directive in a Content Security Policy due to the use of thenew Function()
constructor. Is it possible to avoid using it?