mdb-ui-kit/rollup.config.js
2018-01-23 13:15:45 +01:00

26 lines
524 B
JavaScript

import fs from 'fs';
import babel from 'rollup-plugin-babel';
const babelOptions = JSON.parse(fs.readFileSync('./.babelrc'));
export default {
output: {
format: 'umd',
},
globals: {
jquery: 'jQuery',
'popper.js': 'Popper'
},
plugins: [
babel({
exclude: 'node_modules/**', // Only transpile our source code
externalHelpersWhitelist: [ // Include only required helpers
'defineProperties',
'createClass',
'inheritsLoose',
'extends'
]
})
],
};