I'm trying to migrate my app to webpack 4. My head hurts already. Dynamic imports - this is my method of code splitting (page by page). But I can't get it to work. Have set up very simple tester with following packages: "devDependenc...
I tried to create a simple form validation and registered this via yarn link in a example project to test the set up. But it absolutely doesn't work and I have no idea how to continue. export default class Proofr { constructor() { console....
I'm getting this error when I try to run my app, I'm using all the same dependencies that I always use so I'm very baffled by this. I've tried deleting my package-lock.json and node modules a couple of times and tried searching the w...
I inadvertently introduced a backwards compatibility issue in my React app by using Array.prototype.flat. I was very surprised this didn't get resolved by transpiling - I thought this would result in es2015 compatible code. How can I get Babel 7...
Is it possible to configure webpack to do the equivalent of: babel src --watch --out-dir lib So that a directory structure that looks like this: - src - alpha - beta.js - charlie - delta.js - echo.js - foxtrot - gol...
I'm trying to use the babel-loader with the babel-plugin-transform-runtime. I've followed the instructions at: https://github.com/babel/babel-loader#babel-is-injecting-helpers-into-each-file-and-bloating-my-code The relevant code: rules: [...
This has got to be one of the strangest issues with webpack i have ever come across... Check out this bundle breakdown: react 116.01KB - fair enough react-dom 533.24KB - seriously WTF I thought it may be a corruption in my dependencies but nuki...
I'm trying to figure out how to extract some information from babel compilation process. More specifically, when I run babel (no matter if using Webpack's babel-loader, test frameworks' transformers, Babel's CLI, etc) I'd need to...
I'm using babel-loader in my webpack.config.js file but I noticed it removes the license comments of the form: /*! whatever **/ Is there a way to preserve them? I noticed babel has a commentsoptions, but I guess that would preserve any comment...
I have an app module and common module that is shared by several app modules. - app - src - package.json - webpack.config.json - .babelrc - common - lib - package.json - .babelrc app/package.json dependencies: { common: "../c...
©2020 All rights reserved.