Tobias Koppers
b80174a069
Improve backward-compat for various things
...
to enable mini-css-extract-plugin
2019-09-26 22:06:54 +02:00
Tobias Koppers
2e37731988
add analysis for top level symbols, exports and imports
...
integrates the work of Vincent Chan for GSoC 2018
Co-authored-by: Vincent Chan <cdzos97@gmail.com>
2019-09-03 14:18:40 +02:00
Tobias Koppers
e507392094
add output.ecmaVersion options to set emitted code style
...
fix a bug with prefetching initial chunks
InitFragments have get[End]Content methods which get a sourceContext
RuntimeModules have implicit chunk and compilation
changed default to `output.ecmaVersion: 2015`
2019-08-26 21:32:29 +02:00
Tobias Koppers
aa3ba01707
bugfix fallback default directory
2019-08-22 10:40:01 +02:00
Tobias Koppers
cb4c02ebe1
store snapshot of resolving dependencies and re-resolve when needed
...
to be able to invalidate cache when PnP build dependencies change
cacheDirectory defaults to .pnp/.cache/webpack when PnP is used
fallback cacheDirectory is now .cache/webpack instead of tmpdir
2019-08-20 14:50:09 +02:00
Tobias Koppers
a2caa36b8e
add immutablePaths next to managedPaths for paths in the yarn cache
...
for PnP support
2019-08-20 14:50:07 +02:00
Tobias Koppers
e5cecdad23
store build dependencies snapshot in pack
...
add snapshot shortcut for package manager managed paths
add cache.managedPaths
2019-08-13 17:02:37 +02:00
Tobias Koppers
856235d76f
track and config build dependencies
2019-08-12 23:07:41 +02:00
Tobias Koppers
f64bbf1790
disable old available modules optimization by default
2019-07-26 15:13:53 +02:00
Tobias Koppers
a7128eebe7
increase default idleTimeout to 1 minute
2019-07-26 13:59:17 +02:00
Tobias Koppers
c17dfde7a8
Merge tag 'v4.37.0' into next
...
4.37.0
2019-07-24 10:51:04 +02:00
Tobias Koppers
d532c4f24f
allow to configure the infrastructure logger
...
rename includeDebugLogging to loggingDebug
rename logToConsole to createConsoleLogger
2019-07-22 09:22:36 +02:00
Tobias Koppers
fb45e38fa4
rename url -> asset
...
remove experimental in favor of experiments.asset
2019-07-17 11:57:04 +02:00
Yuta Hiroto
c9aa09439e
fxiup! feedback
2019-07-17 11:47:14 +02:00
Yuta Hiroto
ad51d66e95
feat(WebpackOptions): add default value and set UrlModulesPlugin
...
default: [hash].[ext]
2019-07-17 11:46:25 +02:00
Tobias Koppers
955d5689a9
remove experimental from module type name
...
since there is the `experiments` config now
2019-07-15 15:03:29 +02:00
Tobias Koppers
b2e7837288
replace Object.assign with object spread
2019-06-19 13:16:05 +02:00
Ryan Drew
6e16e12007
remove update to 100 line length
...
This commit removes the update to 100 line length. It's bad
practice to introduce a behavior change like that.
2019-06-18 10:04:14 -04:00
Ryan Drew
054c933950
introduce name truncation config option for SplitChunksPlugin
2019-06-15 14:20:48 -04:00
Tobias Koppers
d4651abe8e
fix test failures
2019-06-05 16:10:08 +02:00
Tobias Koppers
12a3e7c854
create experiments for importAwait importAsync and (a)syncWebAssembly
2019-06-05 13:32:22 +02:00
Tobias Koppers
de61023616
add side-by-side wasm support based on async modules
...
type: "webassembly/async-experimental"
remove i64 importing limitation since it will have BigInt integration eventually
update wasm example
2019-06-04 23:28:56 +02:00
Tobias Koppers
ad64a1c2ca
add experiment.mjs config option
2019-06-04 11:33:26 +02:00
Tobias Koppers
0de5b54f25
disable node stuff in node targets
2019-05-22 15:55:21 +02:00
Tobias Koppers
92f8c36ca2
add `minRemainingSize` option for splitChunks to ensure leftover chunks from splitting have a minimum size
...
defaults to `minSize` of cache group
defaults to global option when not specified
global option defaults to zero in development
2019-05-13 13:10:23 +02:00
Tiago Costa
d9d2983225
chore(NA): fix import order.
2019-03-21 02:26:08 +00:00
Tiago Costa
5453d3dfe7
chore(na): use find-cache-dir in order to calculate the webpack cache defautl dir. Fallback to the os.tmp in case of a failure.
2019-03-20 17:14:41 +00:00
Tobias Koppers
180f912493
Merge tag 'v4.29.2' into next
...
4.29.2
2019-02-06 15:37:11 +01:00
Tobias Koppers
b25ff237bb
Prettify source code
2019-02-05 10:08:45 +01:00
Tobias Koppers
6fc0b96c9c
add MangleExportsPlugin and options
2019-01-31 11:41:30 +01:00
Tobias Koppers
7c0d845af3
Refactor FileCachePlugin into multiple modules
2019-01-25 19:21:45 +01:00
Steven Hargrove
a80b65d099
a .json file is not a valid loader
2019-01-17 14:08:50 -05:00
Tobias Koppers
f196886f31
Enable node.global by default
2019-01-08 14:37:13 +01:00
Tobias Koppers
781398355a
Use fullhash to avoid deprecation warning
2018-12-25 20:10:49 +01:00
Florent Cailhol
2a10b12e09
Add maxAsyncSize and maxInitialSize options
2018-12-11 20:47:50 +01:00
Florent Cailhol
760b1da9f3
Add maxInitialSize and maxAsyncSize options
2018-12-10 21:05:39 +01:00
Tobias Koppers
0d2faa0d0a
Merge pull request #8460 from webpack/refactor/node_polyfills
...
Do not polyfill node bindings by default
2018-12-08 12:23:24 +01:00
Tobias Koppers
fe80339d71
use - instead of ~ as default for better compat
...
fix automaticNameDelimiter in splitChunks
fix test cases
2018-12-07 14:46:49 +01:00
Tobias Koppers
8281667668
improve ids for Long Term Caching
...
add deterministic chunk ids and make it default
StatsTestCases no longer need to explicitly use natural ids as the defaults are deterministic now too
add concept of id name hints for chunks
add `idHint` option to splitChunks to provide a hint
deduplicated code from different id plugins to IdHelpers
improve behavior of named ids in case of conflicts
remove `name: true` and `automaticNamePrefix` from splitChunks it's not as good as expected
improve named chunk ids to show root modules
2018-12-07 12:26:35 +01:00
Florent Cailhol
002128c288
Do not polyfill node bindings by default
2018-12-07 08:58:26 +01:00
Tobias Koppers
e5e648061c
Merge pull request #8448 from sodatea/wasm-resolve
...
fix: `.wasm` extension should have lower priority when resolving modules
2018-12-05 12:36:11 +01:00
Haoqun Jiang
8a083ff48c
fix: also change WebpackOptionsDefaulter
2018-12-01 18:40:17 +08:00
Ed Morley
311a7285d3
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-11-18 22:56:10 +03:00
Florent Cailhol
caefde17ab
Remove devtoolLineToLine and lineToLine options
2018-11-12 14:26:31 +01:00
Tobias Koppers
cc28367a78
Merge pull request #8109 from webpack/refactor/templatedPaths
...
refactor(TemplatedPathPlugin): split placeholder context (`chunk|module`)
2018-11-05 09:03:00 +01:00
Tobias Koppers
fe66257770
Merge pull request #8276 from smelukov/deterministic-module-ids-in-prod
...
Set deterministic module ids in prod by default
2018-11-05 08:09:57 +01:00
Tobias Koppers
5da271287c
use not deprecated default
2018-11-01 20:23:10 +01:00
Tobias Koppers
02ba24aca8
add a `cache` option to control the resolve cache
2018-10-31 13:55:28 +01:00
Tobias Koppers
3b35fd478c
use module.unsafeCache only for node_modules
...
remove unsafe resolve cache remainings
2018-10-31 13:17:32 +01:00
Tobias Koppers
2688b5b17f
add resolver cache
2018-10-30 15:43:26 +01:00