Browse Source

fix(csp) Use a minified ios-device-list (#23035)

The non-minified (default variant) includes eval statements which are
not allowed by our CSP in sentry.io
Mark Story 4 years ago
parent
commit
96880653f4
1 changed files with 7 additions and 0 deletions
  1. 7 0
      webpack.config.js

+ 7 - 0
webpack.config.js

@@ -359,6 +359,13 @@ let appConfig = {
       less: path.join(staticPrefix, 'less'),
       'sentry-test': path.join(__dirname, 'tests', 'js', 'sentry-test'),
       'sentry-locale': path.join(__dirname, 'src', 'sentry', 'locale'),
+      'ios-device-list': path.join(
+        __dirname,
+        'node_modules',
+        'ios-device-list',
+        'dist',
+        'ios-device-list.min.js'
+      ),
     },
 
     modules: ['node_modules'],