Suppress rollup warnings by stating transforms will be run in node, not browser

This commit is contained in:
Ludwig Schubert
2017-09-05 14:20:14 -07:00
parent ab57a90b29
commit e6202c5442
+3 -2
View File
@@ -5,12 +5,13 @@ import buble from 'rollup-plugin-buble';
const componentsConfig = {
input: 'src/components.js',
output: [{format: 'umd', name: 'dl', file: 'dist/template.v2.js'}],
output: [{ format: 'umd', name: 'dl', file: 'dist/template.v2.js' }],
};
const transformsConfig = {
input: 'src/transforms.js',
output: [{format: 'umd', name: 'dl', file: 'dist/transforms.v2.js'}],
output: [{ format: 'umd', name: 'dl', file: 'dist/transforms.v2.js', globals: {fs: 'fs'} }],
external: ['fs']
};
const defaultConfig = {