MikeKovarik / gulp-better-rollup

📦 Better Gulp plugin for Rollup ES6 module bundler
MIT License
49 stars 16 forks source link

Globals Ignored When Used with External #37

Open chryton opened 5 years ago

chryton commented 5 years ago

Despite setting externals and globals, I am still getting this warning:

(!) No name was provided for external module 'jquery' in options.globals – guessing '$'

Example of the task in the gulpfile:

rollup(
          {
            external: ['$', 'jquery', 'jQuery'],
            output: {
              globals: { jquery: '$', jQuery: '$', moment: 'moment' }
            },
            plugins: [
              noderesolve({
                jsnext: true
              }),
              commonjs(),
              babel()
            ],
            'umd'
})

The files include jquery via this method: import $ from 'jquery';

Is there something I am missing?