Commit Graph

202 Commits

Author SHA1 Message Date
ahabhgk b94741d870 fix: strictModuleErrorHandling not exist on output options 2023-12-04 19:52:44 +08:00
alexander.akait 694aee940d test: prefer relative 2023-06-20 23:03:02 +03:00
Burhanuddin Udaipurwala 510849cf36 test: update snapshots 2023-06-19 09:03:13 +05:30
Burhanuddin Udaipurwala 991280588f test: update snapshots 2023-06-18 21:52:08 +05:30
Sean Larkin 90ee0510b1
Merge pull request #17346 from burhanuday/feat/style-field-resolution
feat: resolve style fields in package json
2023-06-14 08:13:53 -07:00
alexander.akait c350779dd3 test: more 2023-06-14 00:11:03 +03:00
alexander.akait c76418af88 test: update 2023-06-13 21:02:49 +03:00
alexander.akait 9cb6e6d8ed test: fix 2023-06-12 21:55:52 +03:00
Burhanuddin Udaipurwala 26694374ad test: update snapshots 2023-06-12 19:28:12 +05:30
Burhanuddin Udaipurwala 9f27e7563e test: update snapshots 2023-06-08 09:40:57 +05:30
Burhanuddin Udaipurwala ba6ba46d07 test: update tests 2023-06-07 21:57:07 +05:30
Burhanuddin Udaipurwala dcd2d5191b test: update snapshots 2023-06-07 21:52:11 +05:30
alexander.akait 615af4a47b feat: allow to setup dynamic import in worker 2023-05-31 18:00:08 +03:00
alexander.akait 37b2c21c31 test: fix 2023-05-31 18:00:07 +03:00
Shipov Mikhail 85a963a67b feat: add readonly flag for filesystem cache 2023-05-25 03:28:35 +03:00
Burhanuddin Udaipurwala 18169645cd test: update snapshots 2023-05-16 10:02:31 +05:30
Michael Zlatkovsky c67b17bee3 Updated "Defaults.unittest.js" 2023-05-02 13:47:54 -07:00
Sam Brett f5d368efa6 feat: ignoreBrowserWarnings option to ignore browser console warnings 2023-04-20 10:51:37 -07:00
long76 c5ac0d39c4
Merge branch 'main' into patch-1 2023-03-25 13:53:20 +03:00
Thomas Tay 9e8fe6eda3 fix Defaults snapshot 2023-02-09 15:01:06 -08:00
long76 8c20d74992 replace globalObject to amdContainer, add tests 2023-01-02 16:32:11 +03:00
Joshua David 9b4471c846 test: unit test future defaults w/out css 2022-07-09 03:23:21 +10:00
Ivan Kopeykin c82dc1eee4 Merge branch 'main' into support-create-require
# Conflicts:
#	declarations/WebpackOptions.d.ts
#	lib/config/defaults.js
#	schemas/WebpackOptions.check.js
#	schemas/WebpackOptions.json
#	test/Defaults.unittest.js
#	test/__snapshots__/Cli.basictest.js.snap
#	types.d.ts
2022-05-10 13:48:43 +03:00
Tobias Koppers e2df0ddd92
Merge pull request #15494 from webpack/feature/global-options-for-dynamic-import
add parser options for dynamic import
2022-05-10 12:44:52 +02:00
Ivan Kopeykin ee911c6aae add createRequire javascript parser option 2022-03-28 17:16:31 +03:00
Ivan Kopeykin 5a9ead926a fix discussion 2022-03-15 16:47:07 +03:00
Tobias Koppers f43047c4c2
Merge pull request #15002 from TrickyPi/fix-14927
Fix 14927
2022-03-15 11:44:23 +01:00
Ivan Kopeykin 62d50bad4b add parser options for dynamic import
- add dynamicImportMode for ContextModule
- add dynamicImportPrefetch for prefetch order
- add dynamicImportPreload for preload order
2022-03-09 10:27:02 +03:00
Ivan Kopeykin 9db496b66c fix node version for browserslist 2022-02-21 18:35:47 +03:00
Tobias Koppers bd35396503 handle more cases with an regexp 2022-02-10 13:06:10 +01:00
TrickyPi d575996433 fix: exclude [name] placeholder when getting uniqueName 2022-02-09 11:11:46 +08:00
Ivan Kopeykin b254f350a7 update dynamicImport default, add test case 2022-02-03 15:11:43 +03:00
Ivan Kopeykin 3f10a17e2f set output.environment.module=true when output.module enabled 2022-02-02 10:13:20 +03:00
Ivan Kopeykin 232403c5e8 fix discussions 2022-01-28 12:00:53 +03:00
Tobias Koppers 1489b91a98 allow to generate only exports for css in node
add more options to the DeterministicModuleIdsPlugin to allow to opt-in into a fixed mode

optimize module iterations for module id assignment
2022-01-19 15:17:01 +01:00
Tobias Koppers 313e416bd2 Merge branch 'main' into cspell-globs 2022-01-18 10:40:25 +01:00
Tobias Koppers 05f2196d61 check more files and fix spelling issues 2022-01-18 10:38:06 +01:00
Tobias Koppers 16784692d3 add `output.cssChunkFilename` 2021-12-17 12:18:01 +01:00
Tobias Koppers 284d536312 nitpicks 2021-12-17 10:34:42 +01:00
Tobias Koppers 77b5589c1a css generation and hmr 2021-12-03 08:46:22 +01:00
Ivan Kopeykin 3feab5bc72 set hashDigestLength=16 for futureDefaults 2021-11-29 22:12:02 +03:00
Tobias Koppers 81f6c5b61c
Merge pull request #14718 from webpack/fix-managed-path
fix regexp in managed paths
2021-11-12 14:42:05 +01:00
Ivan Kopeykin adea157a91 fix regexp in managed paths 2021-11-12 15:36:03 +03:00
Tobias Koppers 9bb5651e6a add `asyncChunks: boolean` option to disable creation of async chunks 2021-11-10 15:04:44 +01:00
Mark Molinaro 0f22db981d Fix names of options to match the exported types 2021-11-06 00:01:21 +00:00
Tobias Koppers f9e6b682ab make exportsPresence strict by default in future 2021-11-05 16:13:49 +01:00
Tobias Koppers 43f6109957 update snapshot 2021-11-05 11:40:18 +01:00
Tobias Koppers d9c592738a refactor and add test cases
add `parser.exportPresence`, `parser.importExportPresence`, `parser.reeexportExportPresence` `"error" | "warn" | "auto" | false`
2021-11-02 18:29:47 +01:00
Tobias Koppers e189971705 Merge branch 'main' into mamolin/allow-ignore 2021-11-02 13:46:25 +01:00
Tobias Koppers ae52a74802 improve buildHttp
allow multiple configurations to write to the same lockfile
add allowedUris for allowlisting
add schema validation
2021-10-19 09:21:05 +02:00
Tobias Koppers 5e16d642ad allow RegExp as managed and immutable paths
add all node_modules as managedPaths in futureDefaults
2021-10-18 22:56:41 +02:00
Mark Molinaro b422943d2a Limit scope of changes to just HarmonyExportImportedSpecifierDependencies 2021-10-07 20:55:49 +00:00
Tobias Koppers 3b48429eb5 add MemCache for memory caching per module which is invalidated when module or any referenced modules changes
add `experiments.cacheUnaffected`
add `cache.cacheUnaffected` (type: memory) resp `cache.memoryCacheUnaffected` (type: filesystem)
2021-09-24 15:23:29 +02:00
Tobias Koppers da8e93af33 use xxhash64 for future defaults 2021-09-23 15:04:22 +02:00
Ivan Kopeykin 5592f6616f add experiments.futureDefaults
futureDefaults applies next major defaults
adds node.global=warn
node.__filename=warn-mock
node.__dirname=warn-mock
2021-09-14 11:29:57 +03:00
Tobias Koppers 60408e1136 add importModule to loader context by default
always enable experiments.executeModule and remove it
2021-09-02 16:27:39 +02:00
Tobias Koppers abe5005aec disable cache compression by default
it has a negative performance impact in many cases
2021-08-10 13:04:43 +02:00
Tobias Koppers b6609a4f6b add `experiments.buildHttp`
allows to build remote resources
stores remote resources in a lockfile
2021-08-05 15:47:18 +02:00
Sven Sauleau 6c50c81350 Revert "Revert "Merge pull request #12278 from xtuc/sven/import-assertions""
This reverts commit 61946b7c46.
2021-07-24 23:28:30 +01:00
Tobias Koppers 61946b7c46 Revert "Merge pull request #12278 from xtuc/sven/import-assertions"
This reverts commit df02bc6c0a, reversing
changes made to a6f341e243.
2021-07-16 21:54:21 +02:00
Sven Sauleau 8bc0927ede update test snapshots 2021-07-16 13:18:48 +02:00
Tobias Koppers 7f22e4721f match on asserts
change Map to Record
improve test case
2021-07-16 13:17:20 +02:00
Sven Sauleau b166f46f2c parse import assertions 2021-07-16 13:14:54 +02:00
Tobias Koppers b29c44e223 add separate webpack warmup step with large timeout 2021-07-15 16:37:54 +02:00
Tobias Koppers 492055ae90 add cache compression 2021-07-02 07:05:13 +02:00
Tobias Koppers f7766875bc
Merge pull request #13649 from webpack/cache/automatic-store
store cache after large changes
2021-06-28 17:35:14 +02:00
Tobias Koppers 142bc5610f store cache after large changes
detect larger changes automatically and use shorter timeout
2021-06-28 11:35:14 +02:00
Tobias Koppers 4da99d8254 add `module` library support, test and example
add test cases for `experiments.outputModule`
2021-06-23 14:49:14 +02:00
Tobias Koppers 2615e1c475 fix import 2021-06-21 10:51:46 +02:00
Tobias Koppers 973edfbd1b support data urls as input in `new URL` 2021-05-19 11:30:09 +02:00
Tobias Koppers b0fa9ccada pretty files 2021-05-11 09:31:46 +02:00
Tobias Koppers 88da3f8ed2 normalize output.trustedTypes to an object 2021-05-10 10:34:21 +02:00
Tobias Koppers bb8ba1cd05 disable trustedTypes by default
allow to pass a boolean as trustedTypesPolicy
2021-05-10 09:02:46 +02:00
Krzysztof Kotowicz dbd095b44a Added the Trusted Types logic. 2021-05-04 16:12:34 +02:00
Tobias Koppers 9b57c3cb56 avoid complex "by exports" splitting for splitChunks in development mode 2021-04-28 09:10:44 +02:00
Tobias Koppers 766be5a3fd add cache.profile flag for more info about (de)serialization timings 2021-04-28 09:10:43 +02:00
Tobias Koppers be66dc6242 collect memory cache faster when using filesystem cache 2021-04-20 15:40:06 +02:00
Tobias Koppers 065177df66 add experimental support for build time execution
allow to execute a part of the module graph at build time
e. g. to generate code or other assets

loaders have access to that via `this.importModule(request, options)`
2021-04-12 12:27:54 +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
Hyeonmin Park 74fabafe22 fix: base config test in Defaults 2021-04-06 22:50:19 +09: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 5ff9a1486f add test case 2021-03-08 09:40:02 +01:00
Tobias Koppers 0e63c0db0a fix infinite loop in defaulting 2021-02-05 20:09:50 +01:00
Sergey Melyukov 654e4e1ba0 Merge remote-tracking branch 'upstream/master' into clean 2021-02-02 10:38:41 +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
Sergey Melyukov 8c2e4f595b Merge remote-tracking branch 'upstream/master' into clean 2020-10-07 14:19:55 +03:00
Sergey Melyukov 8c2bcaef5b (fix): test 2020-10-01 09:17:58 +03: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 ea075be453 add config.ignoreWarnings
deprecate stats.warningsFilter
2020-09-20 22:08:38 +02:00
Tobias Koppers 51c546bb99 fix test cases 2020-09-18 11:36:16 +02:00
Tobias Koppers 4dc04d1971 Merge branch 'master' into dynamically-resolve-public-path 2020-09-18 10:40:39 +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