grafana/ui: Do not build in strict mode as grafana/ui depends on non-strict libs (#21319)

This commit is contained in:
Dominik Prokop 2020-01-03 10:02:27 +01:00 committed by GitHub
parent 534e343c71
commit 41fd265c64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ const buildCjsPackage = ({ env }) => {
name: libraryName,
format: 'cjs',
sourcemap: true,
strict: false,
exports: 'named',
globals: {
react: 'React',
@ -23,7 +24,7 @@ const buildCjsPackage = ({ env }) => {
},
},
],
external: ['react', 'react-dom', '@grafana/data'],
external: ['react', 'react-dom', '@grafana/data', 'moment'],
plugins: [
commonjs({
include: /node_modules/,