initial commit.
This commit is contained in:
46
node_modules/json2csv/rollup.config.js
generated
vendored
Normal file
46
node_modules/json2csv/rollup.config.js
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import commonjs from 'rollup-plugin-commonjs';
|
||||
import globals from 'rollup-plugin-node-globals';
|
||||
import builtins from 'rollup-plugin-node-builtins';
|
||||
import babel from 'rollup-plugin-babel';
|
||||
import pkg from './package.json';
|
||||
|
||||
export default [
|
||||
{
|
||||
input: 'lib/json2csv.js',
|
||||
output: {
|
||||
file: pkg.browser,
|
||||
format: 'umd',
|
||||
name: 'json2csv'
|
||||
},
|
||||
plugins: [
|
||||
resolve({
|
||||
browser: true
|
||||
}),
|
||||
commonjs(),
|
||||
globals(),
|
||||
builtins(),
|
||||
babel({
|
||||
exclude: ['node_modules/**'],
|
||||
babelrc: false,
|
||||
presets: [['@babel/env', { modules: false }]],
|
||||
})
|
||||
]
|
||||
},
|
||||
{
|
||||
input: 'lib/json2csv.js',
|
||||
output: [
|
||||
{ file: pkg.module, format: 'es' }
|
||||
],
|
||||
external: [ 'os', 'stream' ],
|
||||
plugins: [
|
||||
resolve(),
|
||||
commonjs(),
|
||||
babel({
|
||||
exclude: ['node_modules/**'],
|
||||
babelrc: false,
|
||||
presets: [['@babel/env', { modules: false }]],
|
||||
})
|
||||
]
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user