mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-29 04:54:12 +03:00
73b89975af
generated from commit ee7acd70b0
39 lines
941 B
JavaScript
39 lines
941 B
JavaScript
import fs from 'fs';
|
|
import babel from 'rollup-plugin-babel';
|
|
import resolve from 'rollup-plugin-node-resolve';
|
|
import cjs from 'rollup-plugin-commonjs';
|
|
|
|
const babelOptions = JSON.parse(fs.readFileSync('./.babelrc'));
|
|
|
|
export default {
|
|
output: {
|
|
format: 'umd',
|
|
globals: {
|
|
jquery: 'jQuery',
|
|
'popper.js': 'Popper',
|
|
},
|
|
},
|
|
external: ['jquery', 'popper.js'],
|
|
plugins: [
|
|
babel({
|
|
exclude: 'node_modules/**', // only transpile our source code
|
|
externalHelpersWhitelist: [
|
|
// Include only required helpers
|
|
'defineProperties',
|
|
'createClass',
|
|
'inheritsLoose',
|
|
'extends',
|
|
],
|
|
}),
|
|
resolve({
|
|
mainFields: ['module', 'main'], // Default: ['module', 'main']
|
|
}),
|
|
cjs({
|
|
include: ['node_modules/bootstrap/**', 'node_modules/jquery/**'],
|
|
namedExports: {
|
|
'node_modules/jquery/dist/jquery.js': 'jquery',
|
|
},
|
|
}),
|
|
],
|
|
};
|