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...
I am building a framework, in which I want to have examples folder, like this:  ./framework-core  ./framework-constants  ./framework-helpers  ./examples  I want to be able to run the examples with rollup when I download the framework from github, usi...
Uncaught ReferenceError: showContent is not defined. Although all other modules (main,about) defined. For assembly I use rollup. Where is the mistake?  import showContent from 'modules/showContent'; import main from 'modules/screens/main&...
Foreword: I know there is no silver bullet to encode/obfuscate JavaScript to prevent modification.  I use Webpack/Rollup + Gulp + React to build a bundle.js, and it is included in a few pages of a very large website. Everything is under a very old we...
I'm trying here to create angular 2 application build with npm rollup module in order to have a tree shaking that would remove code that is not used within particular application and that all works quite nice when I'm bundling application its...
I'm trying to transpile async/await statements to use in the browser (as far back as IE11). I'm using Rollup and Babel 7, but keep getting errors in Chrome when I actually run the code. I feel like it's related to the plugins and/or their...
I would like to bundle a .js file with rollup that has only a class definition in it. But rollup creates only an empty bundle-file. This changes when I add some code outside the class Definition.  This creates an empty bundle:  class MyElement extend...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.