I'm having an error that makes absolutely no sense. I haven't run rollup -c in about an month and running it now is causing all sorts of mayhem.  1) mootools already loaded  Why on earth is mootools already loaded in the log of this error? Wh...
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...
Suppose we create a typescript class with two static methods:  export class Utilities {       static methodFoo() { return 'foo'}       static methodBoo() { return 'boo'} }    Later someone imports our class from the npm package @scope...
I have a Node.js app with all modules written in CommonJS and some using es6 features such as generators, let, const etc. And this all works fine as is.  I want to bundle all these files into one file and then uglify that. My best guess at the necess...
I try to use JS ES modules with a fallback bundle, generated by rollup.js.  Standard imports are no problem. But I have an issue with dynamic imports.  I uploaded the full example of the setup here: https://www.file-upload.net/download-13588759/gulp-...
Context:  Given a project structure like this:  ? src ??? a ? ??? module.js ??? b ? ??? module.js ??? util.js   Where both module.js files import util.js, using the following configuration:  export default {     experimentalCodeSplitting: true,     i...
I use the webpack2 to build my web and I want to benefit from tree-shaking, which only works with es2015 modules.    So I want to ask for commonjs to es2015 transformer of babel plugin like this rollup plugin https://github.com/rollup/rollup-plugin-c...
I am developing a React Library created with create-react-library. Works well and now I want to implement a html text editor. I chose react-draft-wysiwyg for this. I encountered 2 problems:    Adding Editor and EditorState to my component:  import {E...
I was wondering  I am used to work with Webpack and bundle my own libraries to UMD and ESM.  But now I see that some of the libraries I am using, do not even create ESM bundles. Even though, I am able to import them using es6 syntax!.  If it is the c...
I'm trying to bundle everything into one single file with rollupjs.  main.js file:  import * as ex from 'example-export';  ex.alertMe();   example-export.js file:  export function alertMe() {     alert('alert!'); };   The command...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.