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...
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...
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...
I am working on exporting my custom vue component as NPM module. I have followed steps mentioned in the official doc Packaging Vue Components for npm.  My index.js AKA wrapper.js file:  // index.js -> wrapper.js  // Import vue component import com...
How can I expose multiple global names?  // src/module1.js const Util = {   func1 () {},   func2 () {},   func3 () {} }  export default Util   // src/module2.js import Util from './module2'  class Class1 {   constructor({ foo = 1, bar = Util....
I'm experimenting with using Rollup as a React toolset. I've got a working prototype when I can use lazy loading in react. I'm just working with just ES6 Modules, I'll integrate SystemJS for older browsers later. My question is regard...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.