From 3de239b330debd3dffbc748acd620b5a8efae9db Mon Sep 17 00:00:00 2001 From: Collect Truem Server Date: Sat, 26 May 2018 01:57:47 +0200 Subject: [PATCH 1/2] Fix build process --- rollup.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 2d7cf15a..1c0903ab 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -15,15 +15,16 @@ export default { }, external: ['jquery', 'popper.js'], plugins: [ - babel({ + babel(Object.assign(babelOptions, { externalHelpersWhitelist: [ // Include only required helpers 'defineProperties', 'createClass', 'inheritsLoose', 'extends', + 'objectSpread', ], - }), + }) ), resolve({ module: true, }), From 67e34c04ad5eeea6ff4863d888d1dc99d31d147c Mon Sep 17 00:00:00 2001 From: Collect Truem Server Date: Sat, 26 May 2018 03:47:30 +0200 Subject: [PATCH 2/2] add defineProperty to rollup.config to avoid error in AngularJS --- rollup.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/rollup.config.js b/rollup.config.js index 1c0903ab..cc5d1ae3 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -23,6 +23,7 @@ export default { 'inheritsLoose', 'extends', 'objectSpread', + 'defineProperty', ], }) ), resolve({