grafana-ui: Make output chunks correct (#25922)

This commit is contained in:
Dominik Prokop 2020-06-30 09:22:09 +02:00 committed by GitHub
parent 38cb3f2cb2
commit 6eabe6c29f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,12 +13,13 @@ const buildCjsPackage = ({ env }) => {
input: `compiled/index.js`,
output: [
{
file: `dist/index.${env}.js`,
dir: 'dist',
name: libraryName,
format: 'cjs',
sourcemap: true,
strict: false,
exports: 'named',
chunkFileNames: `[name].${env}.js`,
globals: {
react: 'React',
'prop-types': 'PropTypes',