mirror of
https://github.com/youzan/vant.git
synced 2025-12-19 01:02:29 +08:00
fix: output file size when use rollup
This commit is contained in:
@@ -5,7 +5,7 @@ var uppercamelcase = require('uppercamelcase');
|
||||
var path = require('path');
|
||||
|
||||
var OUTPUT_PATH = path.join(__dirname, '../../packages/index.js');
|
||||
var IMPORT_TEMPLATE = 'import {{name}} from \'../packages/{{package}}/index.js\';';
|
||||
var IMPORT_TEMPLATE = 'import {{name}} from \'./{{package}}\';';
|
||||
var ISNTALL_COMPONENT_TEMPLATE = ' {{name}}';
|
||||
var MAIN_TEMPLATE = `{{include}}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import vue from 'rollup-plugin-vue';
|
||||
import alias from 'zan-rollup-plugin-alias';
|
||||
import babel from 'rollup-plugin-babel';
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import filesize from 'rollup-plugin-filesize';
|
||||
import commonjs from 'rollup-plugin-commonjs';
|
||||
import componentsConfig from '../components.json';
|
||||
|
||||
@@ -37,6 +38,7 @@ export default Object.keys(componentsConfig).map(component => {
|
||||
],
|
||||
plugins: [
|
||||
vue(),
|
||||
filesize(),
|
||||
babel({
|
||||
externalHelpers: true
|
||||
}),
|
||||
Reference in New Issue
Block a user