actual/packages/loot-design/demo-rollup.config.js

30 lines
731 B
JavaScript
Raw Normal View History

2022-04-29 02:44:38 +00:00
import babel from 'rollup-plugin-babel';
import resolve from 'rollup-plugin-node-resolve';
import replace from 'rollup-plugin-replace';
import ignore from 'rollup-plugin-ignore';
import commonjs from 'rollup-plugin-commonjs';
export default {
output: {
file: '/tmp/actual-payees.demo.js',
format: 'esm'
// name: 'ManagePayees'
},
external: id => /^(react|react-dom)$/.test(id),
plugins: [
ignore(['./DateSelect']),
replace({
'process.env.NODE_ENV': JSON.stringify('production')
}),
resolve({
extensions: ['.web.js', '.js']
}),
babel({
exclude: 'node_modules/**'
}),
commonjs({
namedExports: { '../../node_modules/glamor/lib/index.js': [] }
})
]
};