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