Merge pull request #1320 from true-metrics/master

Fix build process
This commit is contained in:
Federico Zivolo 2020-01-20 07:49:34 +01:00 committed by GitHub
commit 2e27d434cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ export default {
},
external: ['jquery', 'popper.js'],
plugins: [
babel({
babel(Object.assign(babelOptions, {
exclude: 'node_modules/**', // only transpile our source code
externalHelpersWhitelist: [
// Include only required helpers
@ -23,8 +23,10 @@ export default {
'createClass',
'inheritsLoose',
'extends',
'objectSpread',
'defineProperty',
],
}),
}) ),
resolve({
mainFields: ['module', 'main'], // Default: ['module', 'main']
}),