mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
grafana/ui: Do not build in strict mode as grafana/ui depends on non-strict libs (#21319)
This commit is contained in:
parent
534e343c71
commit
41fd265c64
@ -16,6 +16,7 @@ const buildCjsPackage = ({ env }) => {
|
|||||||
name: libraryName,
|
name: libraryName,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
|
strict: false,
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
globals: {
|
globals: {
|
||||||
react: 'React',
|
react: 'React',
|
||||||
@ -23,7 +24,7 @@ const buildCjsPackage = ({ env }) => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
external: ['react', 'react-dom', '@grafana/data'],
|
external: ['react', 'react-dom', '@grafana/data', 'moment'],
|
||||||
plugins: [
|
plugins: [
|
||||||
commonjs({
|
commonjs({
|
||||||
include: /node_modules/,
|
include: /node_modules/,
|
||||||
|
Loading…
Reference in New Issue
Block a user