ponday-dev / rollup-plugin-lit-sass

3 stars 4 forks source link

Content security policy unsafe_eval issue #5

Open derekbarnhart opened 1 year ago

derekbarnhart commented 1 year ago

When loading my bundle via a cdn into a consuming application where a CSP has been set I encountered the following error:

Screen Shot 2022-12-08 at 12 58 13 PM

Tracing this back to the compiled source I saw that it was the function constructor that was causing the issue: Screen Shot 2022-12-08 at 12 59 03 PM

which maps back to this line: Screen Shot 2022-12-08 at 1 09 39 PM

I am trying to understand why this method of resolving the css is required and why a direct wrapping of the compiled css would not be appropriate. Screen Shot 2022-12-08 at 1 12 21 PM