You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
Specifically, I'm importing bloodhound.js which appears to be a umd file.
Since I'm using rollup format: iife, is there something else I need to do to get the bloodhound UMD into a form that I can include with rollup?
Here's my current config:
//Executing rollup with options: {entry: 'app/assets/javascripts/application.js',sourceMap: true,format: 'iife',plugins: [babel({babelrc: false,presets: ['es2015-rollup']}),nodeResolve({// use "jsnext:main" if possible// – see https://github.com/rollup/rollup/wiki/jsnext:mainjsnext: true,// use "main" field or index.js, even if it's not an ES6 module (needs to be converted from CommonJS to ES6// – see https://github.com/rollup/rollup-plugin-commonjsmain: true,//skip: [ 'some-big-dependency' ], // if there's something your bundle requires that you DON'T want to include, add it to 'skip'// By default, built-in modules such as `fs` and `path` are treated as external if a local module with the same name// can't be found. If you really want to turn off this behaviour for some reason, use `builtins: false`builtins: false,// Some package.json files have a `browser` field which specifies alternative files to load for people bundling// for the browser. If that's you, use this option, otherwise pkg.browser will be ignored.browser: true,// not all files you want to resolve are .js filesextensions: ['.js','.json']})],dest: 'public/assets/debug/application.js'}
The text was updated successfully, but these errors were encountered:
Specifically, I'm importing bloodhound.js which appears to be a umd file.
Since I'm using rollup
format: iife
, is there something else I need to do to get the bloodhound UMD into a form that I can include with rollup?Here's my current config:
The text was updated successfully, but these errors were encountered: