Top "Webpack-4" questions

Webpack is JavaScript module bundler.

How to generate dynamic import chunk name in Webpack

I am dynamically calling an import statement in my TypeScript code, based on that Webpack will create chunks like below: …

webpack webpack-4
Webpack: After installing webpack and webpack-cli still getting error when running webpack

I have the latest versions of webpack installed: "webpack": "^4.0.0", "webpack-cli": "^2.0.9" Yet when I run webpack in the terminal I get …

webpack webpack-4
TypeError: compiler.plugin is not a function at ReactLoadablePlugin.apply

I want to implement SSR in ReactJs using React Loadable by Webpack. Below are a few lines from the package.…

reactjs webpack webpack-4 webpack-cli
Webpack 4 universal library target

According to the Webpack 4 documentation, if I specify libraryTarget: 'umd' it should result in the following output: (function webpackUniversalModuleDefinition(root, …

javascript webpack bundler umd webpack-4
Can not minify the css code with webpack

Webpack version: 4.16.3 All compilation is successful. My code after compilation in bundle.css is not minify. I try to use …

javascript css webpack minify webpack-4
Do I ever need explicit allowSyntheticDefaultImports if esModuleInterop is true configuring TypeScript transpilation?

I need confirmation on the following theory. According to TS docs, there are two options that can be set in …

javascript typescript webpack-4 typescript3.0
babel 7.x - Can't resolve 'core-js/modules/es.array.concat'

I upgraded babel 6.x → 7.x but having issues running Webpack. It is complaining about missing core-js/modules/*. My babel.config.…

babeljs webpack-4 babel-loader react-styleguidist
Webpack 4 - Sourcemaps

This article webpack 4: mode and optimization seems to suggest that when mode is set to development the devtool is set …

webpack webpack-4
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src when use webpack4.2.0

when i use webpack4.2.0, play 'run start', show errors follow: WARNING in configuration The 'mode' option has not been set. …

webpack-4
How to get a list of all files (or modules) included per chunk in Webpack

Can't seem to find any debug option or plugin in webpack to show what exactly went into a chunk. Why …

javascript webpack gulp webpack-4