jQuery是由node_modules/backbone/backbone.js
导入的,但我需要使用zepto而不是jQuery。
如何将zepto模块的导出名称编辑为jquery?
rollup.config.js
plugins: [
babel({
exclude: ['node_modules/**', '**/*.html'],
plugins: ['external-helpers']
}),
commonjs({
include: 'node_modules/**',
exclude: ['node_modules/@webcomponents/webcomponentsjs/**']
}),
resolve({
jsnext: true,
browser: true,
main: true,
module: true,
extensions: ['.js', '.jsx']
})
],
file: 'build/build.js',
name: 'build',
format: 'umd'