Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

babel-istanbul not CSP compatibel #86

Open
msteller-connyun opened this issue Jul 3, 2019 · 0 comments
Open

babel-istanbul not CSP compatibel #86

msteller-connyun opened this issue Jul 3, 2019 · 0 comments

Comments

@msteller-connyun
Copy link

Hey,

as soon I add the istanbul plugin to my babel configuration

      {
        test: /\.js$/,
        include: [/node_modules\/*\/src/, /src/],
        use: {
          loader: 'babel-loader',
           ...
            cacheDirectory: true,
            env: {
              test: {
                plugins: ['istanbul',]
              }
            }
          }
        }
      },

A new Function is added to the code:

  var global = new Function("return this")()

which violates our CSP rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant