Commit Graph

1046 Commits

Author SHA1 Message Date
Alexander Akait d9ce3b1f87
feat: support css esModule generator options 2024-06-04 15:42:23 +03:00
ahabhgk 563c56f406 fix: consider runtime for pure expression dependency update hash 2024-06-04 15:25:43 +08:00
Ivan Kopeykin ba6ace7f30 Merge branch 'main' into feat-platform-target-properties-in-compiler
# Conflicts:
#	lib/config/defaults.js
#	lib/webpack.js
#	types.d.ts
2024-05-08 19:21:41 +03:00
alexander.akait 677dc53080 refactor: logic 2024-05-07 19:01:41 +03:00
Ivan Kopeykin 31ddbd2232 Merge branch 'main' into feat-platform-target-properties-in-compiler 2024-05-07 16:17:55 +03:00
Ivan Kopeykin 3a498e7a39 fix namings 2024-05-01 18:10:57 +03:00
Ivan Kopeykin e11fb128a2 add platform target properties to compiler.
add 2 methods `compiler.getPlatformTargetInfo` and `compiler.setPlatformTargetInfo` to allow get and set platform target properties. by default resolve this properties from target option.
2024-05-01 17:28:13 +03:00
ahabhgk 7ff0a7a13e feat: support css esModule generator options 2024-04-26 14:53:52 +08:00
fi3ework 1234b1f27b fix: should count in module scope variables 2024-04-25 02:21:44 +08:00
fi3ework 551c3721cf feat: root module is less prone to be wrapped in IIFE 2024-04-24 15:54:06 +08:00
ahabhgk bf2571b957 remove exportsConvention for css 2024-04-20 12:10:56 +08:00
alexander.akait 1eaca5784a feat: export `compileBooleanMatcher` util 2024-04-16 18:53:21 +03:00
ahabhgk 0734314753 fix: mangle with destructuring 2024-04-13 02:40:28 +08:00
alexander.akait bfe7a71f85 feat: support `node:` prefix for Node.js core modules in runtime code 2024-04-11 19:16:15 +03:00
alexander.akait 4b62748f37 fix(types): context module types 2024-03-25 19:05:56 +03:00
alexander.akait 9c61ce5694 test: fix 2024-03-25 16:07:02 +03:00
Alexander Akait 4fda15571d
feat: export InitFragment class for plugins 2024-03-22 14:45:19 +03:00
Steve Repsher 21df328e02
Update types 2024-03-21 22:01:35 -04:00
Alexander Akait bc5cdcfa26
fix(types): export InputFileSystem and OutputFileSystem 2024-03-21 15:29:59 +03:00
alexander.akait 7b4775cebe fix(types): fix some types 2024-03-21 15:16:51 +03:00
alexander.akait 4e66cad29e fix(types): export InputFileSystem and OutputFileSystem 2024-03-21 15:12:38 +03:00
alexander.akait be1d35eb02 fix(types): more 2024-03-18 18:50:56 +03:00
alexander.akait 3e3dfd781b fix(types): more 2024-03-17 20:15:44 +03:00
alexander.akait a60b294847 feat: allow to customize the stage of BannerPlugin 2024-03-15 20:55:59 +03:00
alexander.akait 9ed9d06c05 test: more 2024-03-15 19:59:30 +03:00
alexander.akait d50aeb629e test: import attributes 2024-03-15 19:03:28 +03:00
alexander.akait d6e98945c9 fix(js): import assertions 2024-03-15 17:24:33 +03:00
alexander.akait 33cd20a180 fix(types): watching and more 2024-03-14 18:15:13 +03:00
alexander.akait 6f89ed11e9 chore(deps): update `@types/node` 2024-03-12 21:11:53 +03:00
alexander.akait 32717aae42 fix: all filesystem types 2024-03-11 19:33:52 +03:00
Alexander Akait 94d874162a
fix: `fs` types 2024-03-11 18:15:08 +03:00
alexander.akait 5c28ea39a5 fix: types 2024-03-11 17:56:35 +03:00
alexander.akait b58abf188e chore(deps): update enhanced-resolve 2024-03-11 17:06:28 +03:00
alexander.akait cf891a4164 fix: resolve's plugins types 2024-03-11 15:35:28 +03:00
alexander.akait 3a70d69de7 fix: types more 2024-03-06 16:40:12 +03:00
ahabhgk 074fccb38b feat: add css head data compression 2024-03-06 14:29:57 +08:00
alexander.akait 44b4f96e2b refactor: code 2024-03-05 17:40:46 +03:00
alexander.akait b23130013c fix: `fs` types 2024-03-05 16:37:51 +03:00
Alexander Akait 5c2abc3734
feat(css): support css local ident name 2024-02-27 15:19:26 +03:00
Alexander Akait 611bded369
fix: types 2024-02-22 17:58:30 +03:00
alexander.akait caea8131b3 fix: types 2024-02-22 17:36:36 +03:00
alexander.akait 6ab9bdaa73 fix: types 2024-02-22 17:20:17 +03:00
ahabhgk d4dc533fc3 feat: support css local ident name 2024-02-22 20:10:45 +08:00
alexander.akait a1f46a9ac3 fix: types 2024-02-21 17:55:02 +03:00
alexander.akait 6cd0ddbf26 fix: types 2024-02-21 17:05:29 +03:00
ahabhgk f892acf0a2 use dashes case 2024-02-21 19:51:03 +08:00
ahabhgk d4a5766bbe feat: support css exports convention 2024-02-21 16:00:24 +08:00
Alexander Akait c8d4b5e29c
fix: more types 2024-02-19 15:27:07 +03:00
alexander.akait 1addd26691 refactor: more types 2024-02-19 15:13:36 +03:00
alexander.akait 2732c57143 refactor: more types 2024-02-16 21:03:51 +03:00
alexander.akait 3e0b1b7528 fix: types for `Stats.toJson()` and `Stats.toString()` 2024-02-16 15:47:38 +03:00
alexander.akait 7cbf14523e fix(types): update 2024-02-01 18:27:44 +03:00
alexander.akait 3295f6c36f chore(types): more 2024-01-26 19:17:45 +03:00
Alexander Akait 2d6f5fa789
feat: allow to set `false` for dev server 2024-01-23 18:08:40 +03:00
ahabhgk de0e5987d4 fix: error for cyclic importModule 2024-01-23 17:32:50 +08:00
alexander.akait 03ee59a4c5 feat: allow to disable dev server 2024-01-20 20:47:35 +03:00
ahabhgk 92b33021ff feat: css named exports parser options 2024-01-16 00:23:07 +08:00
ahabhgk a55f34349a feat: add warning for asyncModule 2024-01-14 18:11:12 +08:00
alexander.akait be03efaae6 fix: `Server` and `Dirent` types 2024-01-12 21:04:33 +03:00
ahabhgk 2715265126 wip 2024-01-12 15:57:52 +08:00
Alexander Yamakin ce6b0618ff
Merge branch 'main' into feature-14072 2024-01-09 02:59:32 +03:00
Alexander Akait 39bbfbfbb1
feat: support for unmanaged paths 2024-01-04 16:07:29 +03:00
Alexander Akait c1b45d5d80
fix: runtime logic 2024-01-04 15:47:05 +03:00
Alexander Akait 762297ed8c
feat: expose `MultiCompilerOptions` 2023-12-28 19:35:53 +03:00
Alexander Akait ea3d248c99
feat: expose `OptimizationStages` 2023-12-28 16:33:35 +03:00
Sayan751 7d8799ac4b
added unmanagedPaths to snapshot options 2023-10-04 23:28:11 +02:00
Sayan751 f0f8f10426
chore: updated type.d.ts 2023-10-04 21:00:50 +02:00
Sayan751 1e405003b5
chore: updated types.d.ts 2023-10-04 20:40:56 +02:00
Ben Worline dc665724ec update types 2023-10-01 12:09:11 -07:00
Ben Worline d36804ef31 update types 2023-09-30 22:22:23 -07:00
Ben Worline d4e8485462 initial 2023-09-30 22:13:01 -07:00
Ronak Jain 23561c5ef5 Expose OptimizationStages 2023-09-12 08:47:22 +05:30
Ronak Jain 53b296849e Add MultiCompilerOptions 2023-09-12 08:37:58 +05:30
alexander.akait 158e0441e7 refactor(types): more 2023-06-22 04:08:40 +03:00
alexander.akait 3092f7cb20 refactor(types): more 2023-06-22 03:59:10 +03:00
alexander.akait cc734af66e refactor(types): more 2023-06-22 02:45:07 +03:00
alexander.akait 3f71468514 refactor(types): more 2023-06-21 19:01:55 +03:00
alexander.akait d9d64b5198 refactor(types): more 2023-06-21 19:01:53 +03:00
alexander.akait e226101c55 refactor(types): more 2023-06-21 19:00:24 +03:00
alexander.akait a911bd9fa1 refactor(types): more 2023-06-21 19:00:24 +03:00
alexander.akait e381884115 refactor(types): more 2023-06-21 19:00:24 +03:00
alexander.akait 4809421990 refactor(types): more 2023-06-21 19:00:24 +03:00
alexander.akait 64a8822896 refactor(types): fix 2023-06-17 22:57:47 +03:00
alexander.akait 9894226149 refactor(types): more 2023-06-14 19:46:53 +03:00
alexander.akait 568f28bb87 refactor(types): more 2023-06-14 19:45:51 +03:00
alexander.akait 45df4b58c6 chore: update types 2023-06-14 18:25:39 +03:00
alexander.akait 3dc2bb8488 chore: update deps and tests 2023-06-14 18:25:38 +03:00
alexander.akait 0bb8628031 feat: handle more and fixes 2023-06-14 18:25:31 +03:00
alexander.akait 27cae68bda feat: allow to use `falsy` loaders and plugins 2023-06-14 18:25:31 +03:00
alexander.akait 3a3733562e refactor(types): update 2023-06-13 00:35:41 +03:00
alexander.akait 83090d2189 refactor: avoid boolean 2023-06-12 21:56:08 +03:00
alexander.akait 591d3f4bd4 refactor: fix types 2023-06-12 21:56:08 +03:00
alexander.akait 9f4c4ab3b4 test: update 2023-06-12 21:55:53 +03:00
alexander.akait fcbbacf730 refactor: logic 2023-06-12 21:55:52 +03:00
Andrew Boktor f68ab55320 Adding option to set fetchPriority on script tags 2023-06-12 21:55:52 +03:00
YunfeiHe 5cac4f9f84 Update WebpackOptions 2023-06-06 11:58:38 +08:00
YunfeiHe 03fd7dca11 feat: support passing `RegExp` to `splitChunks.chunks` 2023-06-06 11:33:34 +08:00
Sean Larkin 5636399315
Merge pull request #17312 from webpack/feat-allow-to-use-default-handler
feat: export default handler creator for Progress plugin
2023-06-05 09:40:58 -07:00
Sean Larkin 30cf16c7b8
Merge pull request #17311 from webpack/types-more
refactor(types): more
2023-06-05 09:39:14 -07:00
Sean Larkin 9f837fc3e4
Merge pull request #17310 from huozhi/fix/dynamic-layer
Fix layer is missing in dynamic import with dynamic resource
2023-06-05 09:29:38 -07:00
Sean Larkin d5397d83b5
Merge pull request #17301 from webpack/refactor-handle-json-errors
refactor: errors and lazy loading
2023-06-05 09:23:00 -07:00
alexander.akait 6550cb5c7f feat: export default handler creator for Progress plugin 2023-06-05 03:06:45 +03:00
alexander.akait ab47c696a4 refactor(types): more 2023-06-03 20:52:25 +03:00
Jiachi Liu f3f2eb10b4 update types and snapshots 2023-06-03 17:11:23 +02:00
Ben Worline c8dc5fac9b Handle barrel imports (#17305) 2023-06-02 15:16:53 -07:00
alexander.akait e0c7b6c48f refactor: errors and lazy loading 2023-06-01 22:55:49 +03:00
Alexander Akait 53c98f06ee
Merge pull request #17203 from bworline/ns
Normalize property accessors for es6 namespaces and chained member/call expressions
2023-05-31 21:39:09 +03:00
Sean Larkin 16660c1bfa
Merge pull request #17272 from webpack/more-types
refactor(types): more
2023-05-31 10:50:30 -07:00
Ben Worline 77c4deb47e Merge branch 'main' of https://github.com/webpack/webpack into ns 2023-05-31 10:15:14 -07:00
Sean Larkin 1df0148f4b update type def from rebase 2023-05-31 15:02:37 +00:00
alexander.akait 615af4a47b feat: allow to setup dynamic import in worker 2023-05-31 18:00:08 +03:00
alexander.akait 14928de3cf chore: fix types and tests 2023-05-31 18:00:05 +03:00
alexander.akait 792ee7e516 refactor(types): more 2023-05-31 14:56:55 +00:00
Sean Larkin 30c6df29fc
Merge pull request #17267 from webpack/strict-types-for-wasm
refactor(types): wasm and runtime
2023-05-31 07:52:42 -07:00
Sean Larkin 557ea853ef
Merge pull request #15470 from webpack/feat/add-readonly-cache-mode
feat: add readonly cache mode
2023-05-31 07:43:51 -07:00
Sean Larkin c4174269e7
Merge pull request #17266 from webpack/fix-regression-with-module-type
fix(types): regression with unknown types
2023-05-31 07:39:55 -07:00
Ben Worline 9abdfecb5a Merge branch 'main' of https://github.com/webpack/webpack into ns 2023-05-27 07:46:50 -07:00
alexander.akait a7c4ed7efa refactor(types): fix 2023-05-26 01:18:45 +03:00
alexander.akait 3591783d9e refactor(types): wasm and runtime 2023-05-26 01:18:44 +03:00
Sean Larkin 8eb9d8cf4a
Merge pull request #17262 from webpack/types-for-assets
refactor: types for assets and json modules plus plugins
2023-05-25 14:52:56 -07:00
alexander.akait 5c55c19c9b fix(types): regression with mini-css-extract-plugin 2023-05-25 19:41:29 +03:00
Shipov Mikhail c3b643aa79 feat: add readonly flag for filesystem cache 2023-05-25 03:28:39 +03:00
Shipov Mikhail 85a963a67b feat: add readonly flag for filesystem cache 2023-05-25 03:28:35 +03:00
alexander.akait 60e5e13eb8 refactor: more types 2023-05-25 01:41:32 +03:00
Ben Worline 43fdf61148 update types.d.ts 2023-05-24 14:02:57 -07:00
alexander.akait 8fceed08c9 refactor: strict types for runtime modules 2023-05-24 22:46:07 +03:00
Ben Worline 3210786299 update type.d.ts 2023-05-24 12:00:01 -07:00
Ben Worline 52912c030c Merge branch 'main' of https://github.com/webpack/webpack into ns 2023-05-24 11:59:17 -07:00
Ben Worline f3fcd696d4 Merge branch 'main' of https://github.com/webpack/webpack into ns 2023-05-24 08:39:45 -07:00
Sean Larkin 56be17507f chore(deps): Bump enhanced-resolve to ^5.14.1 2023-05-24 14:39:36 +00:00
Sean Larkin 3e910299b9
Merge pull request #17252 from snitin315/feat/appen-sourcemap-fn
feat(SourceMapDevToolPlugin): support append option as a function
2023-05-24 07:29:45 -07:00
Nitin Kumar e7ae10a4dc feat(SourceMapDevToolPlugin): support `append` option as a function 2023-05-24 11:19:08 +05:30
Ben Worline 5022bf9fe1 yarn special-lint-fix 2023-05-23 20:37:15 -07:00
Ben Worline a8bb2d73f8 Merge branch 'main' of https://github.com/webpack/webpack into ns 2023-05-23 20:22:06 -07:00
Ben Worline 7bdd6436ba move comment 2023-05-23 20:03:49 -07:00
Ben Worline f59c12da53 update comment 2023-05-23 15:37:53 -07:00
Ben Worline 852961f200 add comment 2023-05-23 15:37:12 -07:00
Ben Worline 6f43ce3bfb checkpoint 2023-05-23 15:29:25 -07:00
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