Commit Graph

153 Commits

Author SHA1 Message Date
Tobias Koppers 19d60ba0cd Merge tag 'v4.19.1' into next
4.19.1
2018-09-18 10:13:54 +02:00
Sharang Dashputre bb4c2d18f7 Correctly set the 'browser' value for electron-renderer 2018-09-16 18:30:24 +05:30
Ed Morley 79910c6ba5 Switch from uglifyjs-webpack-plugin to terser-webpack-plugin
Some history:
* `uglifyjs-webpack-plugin` < v1.0 used the minifier `uglify-js`
* however `uglify-js` does not support ES6, which resulted in a fork
  called `uglify-es` that was developed in the `uglify-js` repository,
  but under the `harmony` branch
* `uglifyjs-webpack-plugin` v1.x switched to `uglify-es` for ES6 support
* however `uglify-es` stopped being maintained:
  https://github.com/mishoo/UglifyJS2/issues/3156#issuecomment-392943058
* which led to a fork called `terser` that has incorporated all of
  the unmerged PRs and will be where all new development occurs:
  https://github.com/fabiosantoscode/terser
* `terser-webpack-plugin` was created, which is the `terser` equivalent
  of `uglifyjs-webpack-plugin`:
  https://github.com/webpack-contrib/terser-webpack-plugin
* `uglifyjs-webpack-plugin` v2.x will be switching back to `uglify-js`,
  so any project that needs to support ES6 now needs to switch to
  `terser-webpack-plugin`.

Fixes #7923.
2018-09-15 12:29:14 +01:00
Tobias Koppers cf5f1d723c format existing code 2018-07-30 21:29:21 +02:00
Tobias Koppers 6d9e4f315b Use natural module/chunk ids in mode none 2018-07-27 12:27:57 +02:00
Tobias Koppers 5e72a6505a remove deprecated optimization options
and update test cases
2018-07-16 10:32:02 +02:00
Tobias Koppers 2b14ddc984 Merge tag 'v4.16.0' into next
4.16.0
2018-07-11 11:13:47 +02:00
Tobias Koppers 3366421f17
Merge pull request #7663 from webpack/feature/automatic-name-prefix
automaticNamePrefix and name merging bugfix
2018-07-10 20:45:52 +02:00
Tobias Koppers 9f0056b10d
Merge pull request #7686 from webpack/feature/module-chunk-ids-option
add new options moduleIds and chunkIds
2018-07-10 10:19:03 +02:00
Raanan Weber fa7cf3b218
formatting 2018-07-09 17:50:13 +02:00
Raanan Weber c12ab8d5e4 Recursive getDevtoolNamespace
Supporting the case where options.output.library.root is an Array:

```javascript
output: {
  library: {
    root: ["MyLibrary", "Sub"],
    amd: "my-library",
    commonjs: "my-common-library"
  },
  libraryTarget: "umd"
}
```
2018-07-09 17:28:32 +02:00
Tobias Koppers 3fc4eb752f add new options moduleIds and chunkIds
deprecate namedModules, hashedModuleIds, namedChunks
add a lot of TODOs for webpack 5
split OccurenceOrderPlugin into separate plugins for modules and chunks
add NaturalChunkOrderPlugin and enable it in development
2018-07-09 15:06:19 +02:00
Tobias Koppers 14968acc00 add automaticNamePrefix option
allow automaticNameDelimiter on cacheGroup level
2018-07-05 14:13:13 +02:00
Tobias Koppers 0a06f19fd8 Merge tag 'v4.15.0' into next
4.15.0
2018-07-04 22:19:50 +02:00
Tobias Koppers f0ae54d478 Merge tag 'v4.13.0' into next
4.13.0
2018-07-04 22:08:31 +02:00
Tobias Koppers fb2c24bf76 add `splitChunks.maxSize` option
add `splitChunks.fallbackCacheGroup`
add `splitChunks.hidePathInfo`
move `contextify` into utils
add some types
2018-07-04 10:45:02 +02:00
Tobias Koppers 2aac83bd95 rename optimization.splitChunks.cacheGroups.vendors -> defaultVendors
add automaticNamePrefix option
allow automaticNameDelimiter on cacheGroup level
2018-07-02 10:15:13 +02:00
Florent Cailhol b9b81b4002 Do not set nodeEnv when 'mode=none' 2018-06-27 11:18:20 +02:00
byzyk 1fd67d6ddc update defaults in Defaulter 2018-06-26 14:00:48 +04:00
evilebottnawi 07a50001f0 remove comment 2018-06-15 18:55:25 +03:00
Tobias Koppers 5c604f93f6
Merge branch 'master' into feat-implement-option-for-hashed-module-ids-plugin 2018-06-07 14:21:09 +02:00
Tobias Koppers 8e3be48da4 allow to disable wasm import mangle
disable it by default (temporary)
2018-06-05 23:49:02 +02:00
Tobias Koppers 78b31936c3 add checkWasmTypes flag, enabled it only in production 2018-06-04 20:14:08 +02:00
Florent Cailhol 0743250281 Add a test case about nodeEnv 2018-06-04 09:49:08 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
evilebottnawi c222a6f33b feat: implement option for `HashedModuleIdes` plugin 2018-05-25 16:41:20 +03:00
Tobias Koppers 64925a80c7 remove request limit and decrease size limit in development mode
because this improves performance as more files are generated
which can be regenerated separately
2018-05-01 10:54:00 +02:00
Tobias Koppers c47150c42c Clone optimization config in Defaulter
#6565
2018-04-17 11:39:25 +02:00
bastimeyer 70d48256d7 Fix output.globalObject value in node-webkit 2018-04-14 21:27:24 +02:00
Tobias Koppers b30de38eb5
Merge pull request #6672 from EugeneHlushko/fix/6639
fix(bug): chunkFilename as function doesn't work
2018-03-29 11:01:36 +02:00
Tobias Koppers fc2feaf6d7
Merge pull request #6844 from swederik/issue-6843
Add handling for devtool source-map with library specified as Object
2018-03-26 15:47:14 +02:00
Erik Ziegler 7fcd28128a fix: Add handling for devtool source-map with library specified as Object (#6843) 2018-03-23 10:06:39 +01:00
Florent Cailhol e4808b2e57 Read 'browser' main field when target is 'electron-renderer'
Fixes #6811
2018-03-21 10:35:09 +01:00
Tobias Koppers c65fb74a26
Merge pull request #6736 from mc-zone/improvment/performance-falsy-at-non-web-target
Make the `performance` default to false while at non-web target. Close #6715
2018-03-14 11:52:34 +01:00
mc-zone 2ecd323a38 Adjusting the default of performance; improve tests to cover different mode and target. 2018-03-13 23:48:33 +08:00
mc-zone 7c0c1a089e Options: default performance to false if not the web/webworker target(#6715) 2018-03-12 21:16:01 +08:00
Manuel Bauer bda8d52810 Added chunkFilenameDelimiter option for SplitChunksPlugin: Applied requested changes 2018-03-12 10:07:31 +01:00
Manuel Bauer 36db321e9c Added chunkFilenameDelimiter option for SplitChunksPlugin 2018-03-09 10:12:23 +01:00
EugeneHlushko aa55324cfc fix(bug): don't default chunkFileName to a filename typeof function 2018-03-07 21:23:00 +02:00
EugeneHlushko f78cf75177 fix(bug): don't default chunkFileName to a filename typeof function 2018-03-07 09:56:04 +02:00
Tobias Koppers 4f399322ad
Merge pull request #6641 from tmilloff/master
Fix #6634
2018-03-06 12:25:19 +01:00
Jason Milloff 57c6c4323c Add requested changes from PR comments 2018-03-05 11:45:20 -05:00
Connor Clark 17d03c1b24 defaults: set source map option for UglifyJs to true if SourceMapDevToolPlugin exists #6627 2018-03-01 16:08:49 -08:00
Jason Milloff fc0b327d82 Fix #6634 2018-03-01 16:07:24 -05:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Florent Cailhol 40ee8c76d2 Use MD4 for hashing 2018-02-22 11:27:11 +01:00
Tobias Koppers 244d27a42d improve way of getting combinations of chunks
we no longer require a complexity limit -> maxComplexity removed
2018-02-17 10:16:32 +01:00
Tobias Koppers 1e73752fb2 improve chunk splitting
by also trying to select combinations of module chunks
(limited by complexity)
fix size ordering (was reversed)
add chunk cound ordering
2018-02-17 07:01:00 +01:00
Sean Larkin 331c011009
Update WebpackOptionsDefaulter.js 2018-02-13 13:17:55 -08:00
Sean Larkin e8b9b22f45
Set nodeEnv to default to "production" 2018-02-13 12:50:16 -08:00