Aliasing an external dependency (zepto as jquery) with Rollup

151 Views Asked by At

jQuery is imported by node_modules/backbone/backbone.js but I need use zepto instead of jQuery.

How can I edit the exported name of the zepto module to 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'
0

There are 0 best solutions below