12345678910111213141516171819202122232425262728293031323334353637383940 |
- // import buble from 'rollup-plugin-buble';
- import json from 'rollup-plugin-json';
- import resolve from 'rollup-plugin-node-resolve';
- import commonjs from 'rollup-plugin-commonjs';
- var path = require('path');
- var pkg = require('./package.json');
- var external = Object.keys(pkg.dependencies);
- export default {
- input: 'build/js/src/index.js',
- plugins: [
- resolve({
- jsnext: true,
- main: true
- }),
- commonjs(),
- json(),
- // buble()
- ],
- output: [
- {
- file: "build/js/molio.dev.js",
- format: 'umd',
- name: 'MOLIO',
- sourcemap: false
- },
- // {
- // file: "build/js/molio.esm.js",
- // format: 'es',
- // sourcemap: false
- // }
- ],
- external: external,
- sourcemap: false,
- onwarn(warning, warn) {
- if (warning.code === 'THIS_IS_UNDEFINED') return;
- warn(warning); // this requires Rollup 0.46
- }
- };
|