Tobias Koppers
177736f59c
avoid leaking unused memory in buffer backing stores in development mode
2021-04-20 15:22:16 +02:00
Tobias Koppers
21bc6e715b
add support for a pseudo `.webpack[type]` extension allows to set module type when no other type is set from module.rules
2021-04-12 12:27:54 +02:00
Tobias Koppers
f64f837629
tty detection uses provided stream
2021-04-06 15:23:22 +02:00
Tobias Koppers
4e117781e8
improvements
...
add appendOnly flag
add custom console
add custom stream
2021-04-06 15:20:27 +02:00
Hyeonmin Park
72ba68cc78
feat: add colors flag to infrastructureLogging
2021-04-04 14:28:31 +09:00
Tobias Koppers
c84329f73c
add GC to the memory cache and make it configurable
...
memory GC happens by default when persistent cache is enabled and in development mode
otherwise memory cache is kept forever
make maxAge for persistent cache configurable
GC the oldest content file even if it's not touched (to keep cache size small)
filesystem cache will now no longer cache in memory, but restore items from disk again when it was persisted
2021-04-01 17:12:53 +02:00
Tobias Koppers
c18b3c53e5
Merge pull request #12832 from webpack/bugfix/array-default-fallback
...
fix array expansion when using "..."
2021-03-08 10:51:34 +01:00
Tobias Koppers
e63e733713
fix array expansion when using "..."
2021-03-08 09:41:11 +01:00
Tobias Koppers
8dcb90dbbd
avoid making the package.json in context a build dependency
2021-03-06 16:36:14 +01:00
Tobias Koppers
44b4e25b98
fixes for electron target
...
electron has `importScripts` in worker
only choose a chunkLoading which fits to the chunkFormat
prefer fetch wasm loading over node wasm loading
2021-02-15 17:19:08 +01:00
Tobias Koppers
0e63c0db0a
fix infinite loop in defaulting
2021-02-05 20:09:50 +01:00
Bogdan Chadkin
2fa807ee42
Fix paren
2021-02-02 16:22:36 +03:00
Bogdan Chadkin
93ac58c64e
Find package.json manually
2021-02-02 16:01:20 +03:00
Bogdan Chadkin
5717d826fc
Suppress type error
2021-01-31 17:14:53 +03:00
Bogdan Chadkin
b837b4c6d5
Replace pkg-dir with escalade
...
Escalade is small alternative to pkg-dir, find-up etc. without
dependencies. It's already used by browserslist.
2021-01-30 19:05:46 +03:00
Tobias Koppers
013ca3bdd7
add commonjsMagicComments options
...
move javascript related options from 'module' to 'module.parser.javascript'
2021-01-20 20:19:49 +01:00
Tobias Koppers
aac7f2e619
allow to configure parsers and generators globally
...
get plugin schemas from root schema
normalize module.parser/generator
add test case
2021-01-05 12:08:30 +01:00
Tobias Koppers
d46f945572
fix problem when HMR and different runtimes
...
allow HMR to work in WebWorkers too
2020-11-28 13:53:32 +01:00
Tobias Koppers
e1b5a78a24
add optimization.sideEffects: "flag" and use this by default
...
analysing for side effects cause unnecessary changes in parent modules and we want to avoid that in development
2020-10-27 06:50:07 +01:00
Maya
906a447fab
Fix require handling with electron; fixes #11599
2020-10-08 01:06:31 +02:00
Tobias Koppers
68f0dbe748
allow plugins to modify the default size types for splitChunks
2020-09-29 14:34:59 +02:00
Tobias Koppers
4ea79e0683
update enhanced-resolve and webpack-sources
...
add resolve.preferRelative
set preferRelative for new URL() and new Worker() to fix relative requests
2020-09-28 20:43:03 +02:00
Tobias Koppers
7597fe3baf
make browserslist the default target when browserslist config is available
2020-09-28 13:48:13 +02:00
Tobias Koppers
d6c7adf3fb
throw error when no browserslist config found
2020-09-28 11:39:52 +02:00
Sergey Melyukov
eb7e5c0fe9
(fix): remove path to browserslist module
2020-09-24 15:08:09 +03:00
Sergey Melyukov
3996c7d6d4
(fix): remove browserslist from default
2020-09-24 14:50:08 +03:00
Sergey Melyukov
bdf3529021
(feat): improve browserslist support
2020-09-24 14:33:09 +03:00
Tobias Koppers
f263359fd8
use output.importMetaName for import.meta
2020-09-18 10:55:37 +02:00
Tobias Koppers
5cf0b8288c
improve detection when auto publicPath can be used
2020-09-18 10:31:07 +02:00
Ivan Kopeykin
580de0873a
update publicPath
...
- support option output.publicPath="auto"
- add test cases
- render import.meta.url for output.scriptType="module"
2020-09-15 00:27:38 +03:00
Tobias Koppers
bbdb33a5cf
rename output.environment.import -> output.environment.dynamicImport
2020-09-11 23:11:02 +02:00
Tobias Koppers
7e85649492
improve target options
...
infer target properties from different targets and fill defaults from that
custom targets can now be created via `target: false` and a plugin (similar to the other options)
add stubs from universal chunk/wasm loading and module chunk format
add externalsPresets.electron and externalsPresets.electronRenderer
node.__file/dirname: "eval-only"
2020-09-10 11:42:09 +02:00
Tobias Koppers
48010fb955
replace output.ecmaVersion with output.environment and more detailed flags
2020-09-10 11:12:28 +02:00
Tobias Koppers
730aefef37
Merge pull request #11412 from webpack/experiments/enable-mjs
...
enable mjs experiment
2020-09-10 10:57:36 +02:00
Tobias Koppers
eec6fbdd7c
extract loader.target from target option
2020-09-09 19:04:30 +02:00
Tobias Koppers
817c1bf9c7
move default externals from target into externalsPresets option
2020-09-09 15:18:59 +02:00
Tobias Koppers
aa67a435a4
refactor wasm loading from target into output.wasmLoading option
...
allow entry specific wasm loading
2020-09-09 11:20:37 +02:00
Tobias Koppers
ed06a7f83a
new Worker() support
...
add support for async anonymous entrypoints from inside the codebase
add worker example
move entry options into Entrypoint and receive them from there
2020-09-08 07:37:20 +02:00
Tobias Koppers
2d4c9da6a6
enable mjs experiment
2020-09-07 23:15:24 +02:00
Tobias Koppers
0111405198
enable asset experiment
2020-09-03 14:19:09 +02:00
Tobias Koppers
312e2ab587
Merge branch 'master' into feature/asset-url
2020-08-28 20:54:50 +02:00
Tobias Koppers
3c94cad7f1
use import-scripts chunk loading for webworker target
2020-08-28 11:27:32 +02:00
Tobias Koppers
d5d2e3f244
use "self" as globalObject for web-like targets
2020-08-28 11:27:31 +02:00
Tobias Koppers
07d863e14c
implement enabledChunkLoadingTypes approach
...
allow chunkLoading per entry
allow custom library/chunkLoading types
2020-08-28 10:59:37 +02:00
Tobias Koppers
805d26b0ae
unify config options for jsonpFunction and chunkLoadFunction to chunkLoadingGlobal
...
rename hotUpdateFunction to hotUpdateGlobal
2020-08-28 10:58:00 +02:00
Tobias Koppers
d6e637f33c
add "snapshot" configuration to allow to configure how snapshots are created
...
expose snapshot options for module, resolve, buildDependencies and resolveBuildDependencies
move managedPaths and immutablePaths from config.cache to config.snapshot
add timestamp + hash snapshotting mode
use timestamp + hash mode by default in production and for buildDependencies
2020-08-26 01:27:13 +02:00
Tobias Koppers
db36afea4d
Merge pull request #11333 from chenxsan/feature/output-charset
...
add output.charset option
2020-08-19 15:01:06 +02:00
Tobias Koppers
b929d4cdce
calculate real content hash for assets after asset processing
2020-08-18 22:07:24 +02:00
Tobias Koppers
71cf7f4dc8
add support for reexporting in CommonJS
...
and necessary refactoring + fixes for that
2020-08-17 21:32:47 +02:00
chenxsan
fd19fa90b8
add output.charset option
2020-08-17 20:25:27 +08:00