2017-08-11 17:59:31 +03:00
|
|
|
import fs from 'fs';
|
|
|
|
import babel from 'rollup-plugin-babel';
|
|
|
|
|
|
|
|
const babelOptions = JSON.parse(fs.readFileSync('./.babelrc'));
|
|
|
|
|
|
|
|
export default {
|
2017-10-20 16:52:35 +03:00
|
|
|
output: {
|
2018-01-23 15:15:45 +03:00
|
|
|
format: 'umd',
|
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
jquery: 'jQuery',
|
|
|
|
'popper.js': 'Popper'
|
2017-10-20 16:52:35 +03:00
|
|
|
},
|
2017-08-11 17:59:31 +03:00
|
|
|
plugins: [
|
2018-01-23 15:15:45 +03:00
|
|
|
babel({
|
|
|
|
exclude: 'node_modules/**', // Only transpile our source code
|
|
|
|
externalHelpersWhitelist: [ // Include only required helpers
|
|
|
|
'defineProperties',
|
|
|
|
'createClass',
|
|
|
|
'inheritsLoose',
|
|
|
|
'extends'
|
|
|
|
]
|
|
|
|
})
|
2017-08-11 17:59:31 +03:00
|
|
|
],
|
|
|
|
};
|