diff --git a/rollup.config.js b/build/config/rollup.config.js similarity index 83% rename from rollup.config.js rename to build/config/rollup.config.js index cdac2753d..19635b567 100644 --- a/rollup.config.js +++ b/build/config/rollup.config.js @@ -1,6 +1,6 @@ import babel from 'rollup-plugin-babel' -const pkg = require('./package') +const pkg = require('../../package') const year = new Date().getFullYear() const globals = { @@ -22,7 +22,8 @@ export default { }, plugins: [ babel({ - exclude: 'node_modules/**' + exclude: 'node_modules/**', + externalHelpers: true }) ] } diff --git a/package.json b/package.json index 3cc796522..3dddeeaf2 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "compile": "npm-run-all --parallel js css", "dev": "npm-run-all --parallel watch sync", "js": "npm-run-all --sequential js-compile js-minify", - "js-compile": "rollup -c --sourcemap", + "js-compile": "rollup --config build/config/rollup.config.js --sourcemap", "js-minify": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/adminlte.js.map,includeSources,url=adminlte.min.js.map\" --output dist/js/adminlte.min.js dist/js/adminlte.js", "production": "npm-run-all --parallel compile && node build/npm/Publish.js -v", "plugins": "node build/npm/Publish.js -v",