mirror of
https://github.com/wassname/template.git
synced 2026-06-27 18:07:31 +08:00
Suppress rollup warnings by stating transforms will be run in node, not browser
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user