Commit Graph

858 Commits

Author SHA1 Message Date
alexander.akait 214f7cd9fe refactor: test and types 2023-05-24 00:29:08 +03:00
Sean Larkin aeb1912378
Merge pull request #17236 from webpack/types-more
refactor: more types
2023-05-23 13:50:43 -07:00
alexander.akait 75e3ea5c84 refactor: more types for serialization 2023-05-22 21:32:23 +03:00
alexander.akait f003f1c138 refactor: types more 2023-05-22 05:12:44 +03:00
alexander.akait 8e63b43b5e refactor: types more 2023-05-22 04:50:50 +03:00
alexander.akait 30390058ef refactor: types more 2023-05-22 03:46:58 +03:00
alexander.akait e719e60340 refactor: types more 2023-05-22 03:03:05 +03:00
alexander.akait 78075cac67 refactor: types more 2023-05-22 01:28:57 +03:00
alexander.akait 055737dc0c refactor(types): more 2023-05-21 23:31:30 +03:00
alexander.akait 71d60fafb4 refactor(types): more 2023-05-21 22:08:25 +03:00
alexander.akait 3b80086b65 fix: matcher type 2023-05-17 14:25:07 +03:00
Sean Larkin 1b6b741b96 docs(types): Add docs for compilation.afterChunks hook 2023-05-16 22:34:18 +00:00
Sean Larkin 53eccc3465 refactor(types): Expose ChunkGroup to type definitions 2023-05-16 21:43:02 +00:00
Sean Larkin 793a063de6
Merge pull request #17195 from webpack/thelarkinn/add-nmrp-types
refactor(types): Add NMF's ResolveData typed to public interface
2023-05-16 11:41:48 -07:00
Sean Larkin cfc427e4aa Add correct place to add ResolveData type 2023-05-16 14:49:07 +00:00
Sean Larkin 4fada307a7 fix(types): Correct chunkgroup.groupsIterable return type 2023-05-16 05:01:58 +00:00
Sean Larkin 64f70a47a9 refactor(types): Add NMF's ResolveData typed to public interface 2023-05-16 04:29:49 +00:00
Nitin Kumar 12f958869f fix: udpate types 2023-05-09 21:40:59 +05:30
Sean Larkin f21b30adb9 yarn fix 2023-05-04 23:32:36 +00:00
Sean Larkin e958ac552b refactor(types): Improve module type strictness and refactor module type string usages in module subclasses 2023-05-04 23:19:11 +00:00
Michael Zlatkovsky 83d14b13e1 Merge remote-tracking branch 'origin/main' into zlatkovsky/trusted-types-options 2023-05-02 14:58:15 -07:00
Michael Zlatkovsky 2203e24900 Add option to continue on trusted-types policy-creation failure
Webpack already allows for specifying a trusted-types policy name. However, its current implementation is such that if a call to trustedTypes.createPolicy fails, the code will immediately stop executing. This isn't necessarily desirable, as an application could be in the early phases of rolling out trusted types, and thus have the CSP rule for trusted-types LibraryA LibraryB etc, BUT have require-trusted-types-for 'script' be in "report only" mode (Content-Security-Policy-Report-Only). In such a configuration, and when the webpacked code is dynamically-loaded into an application, adding the policy name to the webpack config will break old versions.

This PR keeps the original behavior, but introduces a new option for onPolicyCreationFailure: "continue" | "stop" (with "stop" remaining the default). If a developer chooses the "continue" option, the policy-creation will be wrapped in a try/catch. There is no security risk to this, since for host applications that DO have strict enforcement of trusted-types, the code will simply fail when the dangerous sink is used (e.g., when doing parseFromString). And likewise, wrapping in try/catch and doing nothing on catch is OK, because the code already deals with the possibility of the trustedTypes API not being available on the browser.
2023-05-02 10:12:56 -07:00
alexander.akait 3498d5fb97 chore: update types 2023-05-02 12:55:44 +03:00
Sean Larkin f3389577ef refactor(types): Increase type coverage & docs for B.E.E 2023-04-28 19:21:02 +00:00
Sean Larkin a051a7be54 add new type updates supporting the new type coverage in parser 2023-04-28 18:06:33 +00:00
Sean Larkin 5b20c9af1c
Merge pull request #17057 from webpack/import-support
feat: CSS import and allow to hook module creation
2023-04-26 04:14:45 -07:00
Sean Larkin 2c6dc778ab
Merge pull request #16388 from indeediansbrett/feat/issue-16374
feat: ignoreBrowserWarnings option to ignore browser console warnings
2023-04-25 20:51:46 -07:00
alexander.akait 4b287e1bad fix: types 2023-04-25 19:37:59 +03:00
Rômulo Ruas 3712e9af4c
Sort type exports alphabetically 2023-04-24 16:51:47 +02:00
Rômulo Ruas 8a5b66e758
Export MemoryCacheOptions in types.d.ts 2023-04-24 15:19:43 +02:00
Sean Larkin 3026ad9b81 types(coverage): Increase type coverage of ModuleFilenameHelpers 2023-04-23 02:43:51 +00:00
alexander.akait 94b594511e fix: types 2023-04-22 05:42:04 +03:00
alexander.akait 713b187c2d fix: types 2023-04-22 05:26:43 +03:00
alexander.akait 7a929533dd fix: types 2023-04-22 04:18:17 +03:00
alexander.akait 4f6dc32d38 chore: improve types 2023-04-21 19:22:33 +03:00
alexander.akait 02590bfdc7 chore: improve types 2023-04-21 19:22:33 +03:00
alexander.akait 519da161cc chore(deps): update typescript 2023-04-21 19:22:33 +03:00
Sam Brett f5d368efa6 feat: ignoreBrowserWarnings option to ignore browser console warnings 2023-04-20 10:51:37 -07:00
Sean Larkin 58396f52f7 introduce the new types from enhanced-resolve 2023-04-19 15:17:35 +00:00
Sean Larkin 9d39104867
Merge pull request #15450 from webpack/feature/errors-warnings-space
feature errorsSpace, warningsSpace
2023-04-18 19:02:40 -07:00
Sean Larkin 06d5e562c5
Merge pull request #15198 from stefanprobst/fix/pass-package-type-to-loader-runner
fix: pass package type to loader runner
2023-04-18 18:42:59 -07:00
Ivan Kopeykin e6c7a57e33 Merge branch 'main' into feature/errors-warnings-space 2023-04-12 18:08:16 +03:00
Sean Larkin 3b8c9c613e
Merge pull request #16419 from karlhorky/patch-1
Add NormalModuleReplacementPlugin argument type
2023-04-12 07:49:33 -07:00
Sean Larkin 66f647260d
Merge pull request #12774 from snitin315/export-more-types
Export more types
2023-04-12 07:39:57 -07:00
Sean Larkin 4cacd7e956
Merge pull request #16941 from webpack/feat/destructuring-assignment
Add support for destructuring assignment in parser. Enables tree-shaking for destructuring assignment in simple use cases.
2023-04-12 07:30:52 -07:00
Nitin Kumar 5460618513 export type ExternalItemObjectUnknown 2023-04-11 01:50:17 +00:00
Nitin Kumar 5ae5feb26b export type ExternalItemObjectKnown 2023-04-11 01:50:17 +00:00
Nitin Kumar d59e5fab85 export type ExternalItemValue 2023-04-11 01:50:17 +00:00
Nitin Kumar ba47e6c606 export type ExternalItemFunctionData 2023-04-11 01:50:17 +00:00
Nitin Kumar 9ecc2f8374 feat: export type Externals 2023-04-11 01:50:03 +00:00
Ivan Kopeykin 45754f45d0 rename some properties, add more test cases 2023-04-09 10:44:09 +03:00
alexander.akait 370b099071 chore: update @types/estre 2023-04-08 02:07:37 +03:00
Ivan Kopeykin 9bb35fb998 support destructuring assignment in parser 2023-04-07 22:29:32 +03:00
alexander.akait 83185a4c68 chore: update types 2023-04-06 20:37:17 +03:00
Ivan Kopeykin e4a024f9b1 Merge branch 'main' into feature/errors-warnings-space
# Conflicts:
#	schemas/WebpackOptions.check.js
2023-04-06 11:43:05 +03:00
long76 c5ac0d39c4
Merge branch 'main' into patch-1 2023-03-25 13:53:20 +03:00
Thomas Tay f33c2b07d0
Merge branch 'webpack:main' into main 2023-03-22 15:27:50 +08:00
Stefan Probst 8d20f388cb
test: add test case 2023-03-20 08:22:15 +01:00
Thomas Tay 9e3f5bb0da update snapshots and more special lint fix 2023-03-16 10:28:11 +08:00
Sean Larkin 796b51175c
Merge pull request #16805 from snitin315/fix/improve-source-types
Improve types for `webpack-sources` to match in webpack core.
2023-03-14 08:58:36 -07:00
Nitin Kumar 27b6dce48f fix: improve types for `webpack-sources` 2023-03-11 08:20:02 +05:30
Adam Skoufis 5f34acfbc0
feat: Add `target` to `LoaderContext` type 2023-03-07 09:45:21 +11:00
xiaoxiaojx 3902ac5ffc fix: fix pureDep returns null in some js files 2023-02-09 14:16:25 +08:00
Thomas Tay 7ef871b742 lint fix (somehow by version of Prettier adds this but on linux it doesn't???) 2023-01-27 12:05:33 -08:00
Thomas Tay 13be78b0b8 lint fixes 2023-01-25 13:09:47 -08:00
Thomas Tay 7a1ccea945 change json schema description 2023-01-25 12:28:15 -08:00
Thomas Tay c188270d13
Merge branch 'webpack:main' into main 2023-01-25 12:06:59 -08:00
long76 8c20d74992 replace globalObject to amdContainer, add tests 2023-01-02 16:32:11 +03:00
long76 eb7eb0b9a4 fix types.d.ts 2023-01-01 16:34:43 +03:00
long76 d371a69e58 fix library options 2022-12-22 22:14:02 +03:00
Karl Horky 1b20278fee
Use full ResolveData type 2022-11-10 10:48:26 +01:00
Tobias Koppers c18203c894 update tooling 2022-11-09 12:31:59 +01:00
Karl Horky 1e342b497b
Fix generated argument name 2022-10-26 13:22:12 +02:00
Karl Horky f757c2153b
Add NormalModuleReplacementPlugin argument type 2022-10-26 13:02:18 +02:00
Thomas Tay 895df2a5a1 Worker public path changes 2022-10-21 16:30:43 -07:00
Aur Saraf 4e387ef01f update submodule origin 2022-08-31 04:16:08 +03:00
Tobias Koppers 9fcaa24357
Merge pull request #15746 from jdanil/fix/experiments-css-override
fix: allow normalised experiments css value to be false
2022-07-26 12:27:29 +02:00
Tobias Koppers d4cab5b6f7
Merge pull request #16077 from webpack/fix-scheme
fix webpack scheme
2022-07-25 09:12:44 +02:00
Ivan Kopeykin 767f7414cf fix webpack scheme 2022-07-21 19:16:24 +03:00
Barak Igal e3f6702055 feat: export HarmonyImportDependency and generate types 2022-07-10 09:25:56 +03:00
Ivan Kopeykin 1857792032 fix normalization 2022-07-09 03:23:21 +10:00
Joshua David e5dc89e53f fix: allow normalised experiments css value to be false 2022-07-09 03:23:21 +10:00
Ivan Kopeykin c19b216ab8 enhanced-resolve@5.10.0 2022-06-29 15:33:07 +03: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
Bakon 7270ea5f4e Exporting PathData type definition 2022-05-01 13:12:42 +02:00
Ivan Kopeykin d6d6fb584d Merge branch 'main' into feature-14072
# Conflicts:
#	lib/DependencyTemplate.js
#	lib/javascript/JavascriptGenerator.js
#	schemas/WebpackOptions.check.js
#	types.d.ts
2022-04-05 09:34:50 +03:00
Tobias Koppers c38caa2d82
Merge pull request #15515 from webpack/feat/concatenate-assets
add asset modules concatenation
2022-04-04 16:04:20 +02:00
Ivan Kopeykin 19d1a9384e fix lint and tests 2022-04-04 13:17:46 +03:00
David Tanner 4f2adf9d02
Allow banner to be placed as a footer 2022-04-01 12:29:34 -06:00
Ivan Kopeykin 8df5134ddb support context 2022-03-31 15:10:21 +03:00
Ivan Kopeykin 3b6328c07a Merge branch 'main' into support-create-require 2022-03-28 17:29:13 +03:00
Ivan Kopeykin ee911c6aae add createRequire javascript parser option 2022-03-28 17:16:31 +03:00
Ivan Kopeykin cf5fc90082 support context in Dependency 2022-03-25 17:01:48 +03:00
Ivan Kopeykin 34c4edca6b add createRequire support 2022-03-25 10:50:13 +03:00
Tobias Koppers 86a8bd9618
Merge pull request #15455 from webpack/feature/support-in-operator
add "in" operator support
2022-03-17 11:17:39 +01:00
Ivan Kopeykin 3f1715f8d8 generate only needed source types
- in ConcatenatedModule generate only js
- in NormalModule generate only used sources
2022-03-17 13:00:39 +03:00
Ivan Kopeykin 3ec8a60f67 add ability to set module source types in chunk 2022-03-16 09:23:33 +03:00
Tobias Koppers 5cc3a39109
Merge pull request #15327 from webpack/fix/dont-count-optional-chaining-in-import-specifier
dont count optional chaining in import specifier
2022-03-15 16:56:06 +01:00
Ivan Kopeykin 5a9ead926a fix discussion 2022-03-15 16:47:07 +03:00
Ivan Kopeykin b2fc854227 fix parser.evaluteExpression api 2022-03-15 15:37:17 +03: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
Tobias Koppers 0d685d4e0b
Merge pull request #15413 from cool-little-fish/fix-15274
fix: use relative path in source map for context module
2022-03-08 08:07:54 +01:00
Ivan Kopeykin 8f8ba9194c Merge branch 'main' into feature/errors-warnings-space
# Conflicts:
#	schemas/WebpackOptions.check.js
2022-03-04 09:40:26 +03:00
Tobias Koppers 870fcadfd0
Merge pull request #15423 from webpack/fix/issue-15409
Fix resolving with yield
2022-03-03 14:53:56 +01:00
Ivan Kopeykin f51e099a2d add parserOptions.importMetaContext option 2022-03-03 13:22:21 +03:00
Ivan Kopeykin eb5d124150 add "in" operator support 2022-03-02 15:01:35 +03:00
Ivan Kopeykin 005e065fc4 renaming 2022-02-28 22:52:16 +03:00
Ivan Kopeykin 022cabe76f Merge branch 'main' into feature/errors-warnings-space
# Conflicts:
#	schemas/WebpackOptions.check.js
2022-02-28 15:24:59 +03:00
Tobias Koppers d77b8dd01e
Merge pull request #14857 from webpack/fix-14839
fix asset module hash
2022-02-28 12:42:35 +01:00
Ivan Kopeykin 55f0535f10 feature errorsSpace, warningsSpace 2022-02-27 14:37:53 +03:00
Aleen f05009b698 support to specify the `buildHttp.proxy` for `HttpUrlPlugin` 2022-02-26 23:20:36 +08:00
Ivan Kopeykin e819c06ec2 up enhanced-resolve version 2022-02-26 15:49:44 +03:00
Tobias Koppers 5a446d81e3 Merge branch 'main' into fix-14839 2022-02-22 11:12:13 +01:00
Tobias Koppers 45e8873ca6
Merge pull request #15397 from webpack/add-normal-module-types
add NormalModuleFactory hooks types
2022-02-22 10:48:38 +01:00
Ivan Kopeykin 2665fb118c add baseUri entry option 2022-02-21 16:23:47 +03:00
Ivan Kopeykin 93d44847bd Revert "Revert "Merge pull request #15332 from webpack/fix/context-resolve-issue-11335""
This reverts commit dd53923cd0.
2022-02-21 11:58:44 +03:00
成仕伟 cf52880fb6 update type.d.ts file 2022-02-19 01:17:10 +08:00
Tobias Koppers dd53923cd0 Revert "Merge pull request #15332 from webpack/fix/context-resolve-issue-11335"
This reverts commit 89c92bf0d3, reversing
changes made to a28af55ca1.
2022-02-17 14:43:51 +01:00
Ivan Kopeykin c09d86961d add NormalModuleFactory hooks types 2022-02-15 18:25:44 +03:00
Tobias Koppers 18c3590b28
Merge pull request #15315 from webpack/fix/issue-13022
update topLevelDeclarations for ConcatenatedModule
2022-02-14 14:46:43 +01:00
taranek 64edd98cd3 feat(types): import types needed for export in index.js 2022-02-12 18:43:48 +01:00
taranek cf4b97ca16 refactor(types): removed unused export 2022-02-12 18:04:02 +01:00
taranek 7647919de4 feat(types): expose Argument,EntryOptions,FileCacheOptions,AssetEmittedInfo,Problem types 2022-02-12 18:03:16 +01:00
Ivan Kopeykin cd3ec1da92 refactor top level declarations usage 2022-02-11 17:59:35 +03:00
Tobias Koppers 89c92bf0d3
Merge pull request #15332 from webpack/fix/context-resolve-issue-11335
handle several resources in ContextModule
2022-02-10 17:18:52 +01:00
Tobias Koppers afdb254093 update typings 2022-02-08 10:12:34 +01:00
Tobias Koppers abcf53296d update typescript 2022-02-08 10:12:29 +01:00
Ivan Kopeykin 9951d9d4d9 handle several resources in ContextModule 2022-02-08 11:12:32 +03:00
Ivan Kopeykin 59437ccd10 dont count optional chaining in import specifier
instead of full member expression use only non-optional member expression part
2022-02-07 16:14:22 +03:00
Ivan Kopeykin c09e82fcfe add importMeta to JavascriptParserOptions:
- enable/disable import.meta parsing
- when disabled insert output.importMetaName
2022-01-27 22:54:47 +03:00
pavelsavara 73bb43139d - add new config section importMeta
- use it in ImportMetaPlugin to switch it off as necessary
2022-01-25 16:08:56 +01:00
Tobias Koppers e2d214a1ce
Merge pull request #15200 from webpack/feature/css-exports-in-node
allow to generate only exports for css in node
2022-01-20 23:36:49 +01:00
Tobias Koppers 1ed8aaf2e2
Merge pull request #14173 from tosmolka/tosmolka/14075
Support Trusted Types in EvalSourceMapDevToolPlugin
2022-01-20 17:36:55 +01:00
Tobias Koppers 8828dfa394 add experimental SyncModuleIdsPlugin 2022-01-20 13:37:28 +01: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 d631d14116
Merge pull request #15015 from Knagis/feature/assetModules/outputPath
Add 'outputPath' configuration option for resource asset modules
2022-01-19 14:30:48 +01:00
Tobias Koppers e2bfe58994 nitpicks 2022-01-19 09:18:17 +01:00
Emily M Klassen d5bb62b68e doc: improve definition of addChunkInGroup via jsdoc 2022-01-18 15:44:17 -08:00
Karlis Gangis 2fc4c8da1b Add 'outputPath' configuration option for resource asset modules 2022-01-18 13:45:42 +02:00
Emily M Klassen 5c0767a423 fix: add missing overload for addChunkInGroup 2022-01-17 13:30:43 -08:00
Tobias Koppers 508877c91d
Merge pull request #15050 from luffy84217/fix-callback-err-type-should-include-null
fix callback err type should include null
2022-01-17 17:52:42 +01:00
Tobias Koppers 951dac6bc8
Merge pull request #14953 from snitin315/feat/cli-description
feat: allow specific description for CLI options
2022-01-17 13:14:49 +01:00
Asriel Yu f0a8664895
update type.d.ts by special-lint-fix 2022-01-17 14:06:13 +08:00
Asriel Yu 96da766002
Merge branch 'webpack:main' into fix-callback-err-type-should-include-null 2022-01-14 20:07:21 +08:00
Tobias Koppers 713aa3715f fix missing css runtime when only initial css is used 2022-01-13 10:40:53 +01:00
Asriel Yu 0105d7d3e6 add omitted types should include null 2022-01-11 19:41:14 +08:00
Tobias Koppers 2f2991a967 Merge branch 'main' into support-cjs-static-named-exports 2022-01-10 14:38:57 +01:00
Tobias Koppers 102014bf54 fix target expression
fix externals

add test case
2022-01-10 14:33:34 +01:00
Asriel Yu 136b723023 fix callback err type should include null 2021-12-24 20:27:31 +08:00
Tobias Koppers 16784692d3 add `output.cssChunkFilename` 2021-12-17 12:18:01 +01:00
Nitin Kumar 34471196f3 chore: update types 2021-12-12 15:15:59 +05:30
Tobias Koppers e67ab7fad2 resolve todos, nitpicks 2021-12-03 08:47:17 +01:00
Tobias Koppers 8ae9507196 add support for url() in css 2021-12-03 08:46:24 +01:00
Tobias Koppers 77b5589c1a css generation and hmr 2021-12-03 08:46:22 +01:00
Ivan Kopeykin 405ce48637 fix discussion 2021-11-30 16:36:34 +03:00
Ivan Kopeykin c243a4b022 Merge branch 'main' into feature-14072
# Conflicts:
#	schemas/WebpackOptions.check.js
2021-11-30 13:56:01 +03:00
Ivan Kopeykin 8d8e2e3fa4 fix asset module hash 2021-11-29 19:37:32 +03:00
Brian McBride 791347fc91 Adding types 2021-11-29 08:58:48 +01:00
Tobias Koppers e889c7bec5 Merge branch 'main' into improve-runtime-template 2021-11-26 08:46:49 +01:00
Tobias Koppers 3eff82d0f9
Merge pull request #14806 from webpack/fix-12924
use "safe" global object
2021-11-26 08:40:29 +01:00
Tobias Koppers 7025319eea upgrade watchpack
use new collectTimeInfoEntries method from watchpack

add more efficient Watcher.getInfo method
2021-11-25 09:27:04 +01:00
Ivan Kopeykin edeaa6eb82 use "safe" global object 2021-11-23 20:40:03 +03:00
Ivan Kopeykin 2b87b64de9 rename to runtimeTemplate.concatenation 2021-11-22 18:11:03 +03:00
Ivan Kopeykin 1bdc48e32b improve runtime template
- add optional chaining support check,
- add template string support check,
- use template string in asset generator
2021-11-21 21:18:11 +03:00
evilebottnawi d55382ed79 fix: remove links in clean plugin 2021-11-10 19:58:00 +03:00
Tobias Koppers 9bb5651e6a add `asyncChunks: boolean` option to disable creation of async chunks 2021-11-10 15:04:44 +01:00
Tobias Koppers 7afcc5d4ff allow to disable some deprecations
add `experiments.backCompat: false` (default in `experiments.futureDefaults`)
remove unused `experiments.asset`
enable `experiments.topLevelAwait` and `experiments.asyncWebAssembly` by default in `experiments.futureDefaults`
2021-11-05 09:54:51 +01:00
Tobias Koppers c29fd04793
Merge pull request #14220 from webpack/dependabot/npm_and_yarn/tapable-2.2.1
chore(deps): bump tapable from 2.2.0 to 2.2.1
2021-11-03 16:42:25 +01:00
Tobias Koppers 94f8a21999 update types.d.ts 2021-11-03 16:41:55 +01:00
Tobias Koppers 53fbc86887 Merge branch 'main' into mamolin/allow-ignore 2021-11-03 12:41:51 +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 6e50595cad split chunks `chunks` filter also affects fallbackCacheGroup
add `splitChunks.fallbackCacheGroup.chunks`
2021-11-02 13:23:09 +01:00
Ivan Kopeykin 166be712c0 Merge branch 'main' into feature-14072
# Conflicts:
#	lib/dependencies/CachedConstDependency.js
#	schemas/WebpackOptions.check.js
2021-10-30 21:36:39 +03:00
Tobias Koppers a6bb3e58ec default to the default hash function 2021-10-28 15:32:06 +02:00
Tobias Koppers dcf3b02aaf add wasm md4 implementation
expose createHash is loader context
2021-10-28 00:07:26 +02:00
Tobias Koppers 691e37b6f1 add missing descriptions to schema 2021-10-25 12:33:33 +02:00
Tobias Koppers 4a1d4e6dba Merge branch 'main' into feat/lazy-compilation-backend-https-support 2021-10-25 12:18:53 +02:00
Tobias Koppers ba154bc741 refactor and add test case 2021-10-25 12:12:52 +02:00
Tobias Smolka f6d187bbfb Merge branch 'main' of https://github.com/webpack/webpack into tosmolka/14075 2021-10-20 16:07:33 +02:00
Tobias Koppers 3d3c65f50f add splitChunks.minSizeReduction 2021-10-19 12:35:04 +02: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 576c260470
Merge pull request #14513 from webpack/feature/module-phases-hooks
add hooks during module build
2021-10-19 00:22:20 +02:00
Tobias Koppers 8f341ebaf8 add hooks during module build 2021-10-18 23:35:55 +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
Tobias Koppers e26ac7540a handle non-existing directories
fixes #14441
2021-10-13 10:51:36 +02:00
Tobias Koppers 1ee6f808d3 Revert "track chunk combinations for modules"
This reverts commit 0e13c7dea4.
2021-10-08 15:08:48 +02:00
Mark Molinaro b422943d2a Limit scope of changes to just HarmonyExportImportedSpecifierDependencies 2021-10-07 20:55:49 +00:00
Tobias Koppers 049b859879 compute depth faster 2021-10-07 16:13:42 +02:00
Tobias Koppers 643f1200c0 skip chunk conditions faster 2021-10-07 15:55:22 +02:00
Tobias Koppers 0e13c7dea4 track chunk combinations for modules
improves caching
improves SplitChunksPlugin
2021-10-07 15:43:27 +02:00
Tobias Koppers 508e8d50f2 expand readResource hook to cover normal file reading 2021-10-07 10:28:44 +02:00
Tobias Koppers a6fc14b667 update types 2021-10-06 15:39:21 +02:00
Tobias Koppers 1e5abcc51b improve extractBlockModules 2021-10-06 15:39:21 +02:00
Tobias Koppers f05246efcb use buildInfo instead of hash for cacheUnaffected 2021-10-05 15:09:39 +02:00
Tobias Koppers 91b6972144 add memCache2 for mem caching with module/chunk ids 2021-10-05 15:08:18 +02:00
Tobias Koppers a0a5f28510 allow ExternalModules to be unsafe cached 2021-10-01 16:27:20 +02:00
Tobias Koppers 61569e26b9 compare references modules when restoring mem cache 2021-09-29 09:09:42 +02:00
Tobias Koppers 931d14615f move unsafe cache from NormalModuleFactory to Compilation to skip more processing 2021-09-28 11:37:29 +02:00