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...
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 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...
I got this unusual error after webpack installation, Searched whole web tried all solution but nothing works,   //My webpack.config.js file  const webpack = require("webpack"); const path = require("path"); const config = {     entry...
I am trying to lazy load some React components like so:  node: v10.15.2  const Library = React.lazy(() => import('./components/Library'))`   My error:  Module parse failed: Unexpected token (51:9) You may need an appropriate loader to hand...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.