Commit Graph

219 Commits

Author SHA1 Message Date
alexander.akait 9894226149 refactor(types): more 2023-06-14 19:46:53 +03:00
Tobias Koppers 6477ca56f8 Split options defaulting in normalization and defaults
Apply defaults after plugins are applied to allow plugins to feature their own defaults.
This allows to make preset plugins.
2020-02-17 19:12:54 +01:00
Tobias Koppers 4e926c7a58 enabled optimization.innerGraph and optimization.usedExports by default 2020-01-30 14:36:44 +01:00
Tobias Koppers 21337fe49c enable optimization.sideEffects by default 2020-01-30 14:35:29 +01:00
Tobias Koppers f59c1918e9 add options default tests and fix library array handling 2020-01-16 11:20:41 +01:00
Tobias Koppers f48f82ed8f allow default vendors splitChunk setting to reuse existing chunks
this allows the user to specify chunk names
2019-11-15 12:10:04 +01:00
Tobias Koppers 07671f3481 allow to disable compareBeforeEmit 2019-11-04 16:46:45 +01:00
evilebottnawi 5f2fbe3c67 chore(deps): update `terser-webpack-plugin` 2019-10-22 17:19:04 +03:00
Tobias Koppers 0c40117fb4 minimizing and source-map doesn't work for cheap or eval source maps 2019-10-20 13:28:36 +02:00
evilebottnawi c81ffbef42 refactor: `devtool` option 2019-10-18 14:43:21 +02:00
evilebottnawi 8764f14794 feat: improve DX with `output.ecmaVersion` option 2019-10-11 00:43:27 +03:00
Tobias Koppers ddc3dae0e6 refactor Module.source() and Module.getRuntimeRequirements() into Module.codeGeneration
add code generation phase to Compilation
add `output.iife` options to remove iife wrapper
add `experiments.outputModule` which enabled `output.module`
add `output.module` which sets defaults to `output.iife: false`, `output.libraryTarget: "module"`, `output.jsonpScriptType: "module"`, `terserOptions.module: true`
add `output.module` example
improve runtime requirements needed by ConcatenatedModule
add entry inlining, which inlines entry module code into runtime scope (only when safe)
make whole bundle strict when all modules are strict
2019-10-08 23:59:48 +02:00
Tobias Koppers f6e4dc69c7 terser defaults inherit ecma version 2019-10-08 23:46:37 +02:00
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