I am beginning to learn a bit about bundling as I am working on updating a small, internal React component library which uses Rollup.  Current State  Right now, all of the components are being bundled down into one index.js files. And whenever I impo...
How do I have to configure rollup.js (=> config file "rollup.config.js") if all dependencies should be embedded into the (fat) result bundle (especially: how to configure the rollup parameters "globals", "external", "pl...
For a JS library which is published in a structure like ...  my-package\   dist\     my-package.cjs.js     my-package.cjs.min.js     my-package.cjs.min.js.map     my-package.esm.js     my-package.esm.min.js     my-package.esm.min.js.map     my-packag...
I work on an ES6 project that I transpile using rollup and babel. It works well except when I try to import npm modules that use commonjs (and particularly require('something')) getting an error "require is not defined" in my browser...
Before asking the question, I would like share the folder structure of my project first:    I am trying to use Ramda as a module in my project so that in my ./app/js *.js files I could do something like:  include map from 'ramda/src/map';   B...
I'm trying to build my project using Rollup. I got most of it working (including Angular 2), but I'm unable to transform some of my polyfills, since they have calls to require() in them. Even with the rollup-plugin-node-resolve and rollup-plu...
I'm trying to bundle quite a few JavaScript files into a single minified file using rollup-plugin-multi-entry and rollup-plugin-uglify. I'm new to minifying files so the only thing that throws a red flag is that my IDE's theme isn't c...
Using NodeJS for RollUp.js. When I try to create a callback function, like so, I get "Uncaught TypeError: e is not a function", what am I doing wrong?  main.js  import { intro } from './modules/intro.js'; import { CallWhenReady } from...
When using Rollup how can you get it to work with both @babel/preset-env and @babel/polyfill? The docs mentioned to add useBuiltIns: 'usage' but when I do this I get a require is not defined error in console. Below is what I have so far; is t...
I'd like to modify Mike Bostock's nested pies example http://bl.ocks.org/mbostock/1305337 to have different pie sizes per the number of flights in each airport;  to have a visual idea of how busy each airport is. My guess is to sum up the  nu...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.