Commit Graph

459 Commits

Author SHA1 Message Date
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 d09cc17cee use types from estree 2021-06-22 09:47:29 +02:00
Tobias Koppers 1edacddaa4 prettier 2021-06-21 11:18:23 +02:00
Tobias Koppers e1c6d583cc
Merge pull request #13577 from Smona/master
Correct emitFile content argument type
2021-06-18 12:24:40 +02:00
Tobias Koppers 8affe0f21e update types.d.ts 2021-06-18 10:56:27 +02:00
Tobias Koppers f5fac83c08 clear compilation queues to reduce memory usage 2021-06-17 10:10:51 +02:00
Juho Vepsäläinen 9d01479d4e chore: Update types 2021-05-31 14:55:35 +03:00
Tobias Koppers 4845915c0b Lazy require some modules 2021-05-26 21:35:46 +02:00
Tobias Koppers fe6d28dd16
Merge pull request #13412 from webpack/bugfix/watcher-invalidate-and-changes
track changes and removals correctly during watching
2021-05-20 15:53:52 +02:00
Tobias Koppers 8e9daad216 track changes and removals correctly
purge filesystem correctly
2021-05-19 19:06:58 +02:00
Tobias Koppers 973edfbd1b support data urls as input in `new URL` 2021-05-19 11:30:09 +02:00
Tobias Koppers ca2b56f5a0
Merge pull request #13296 from bolariin/issue-13284
fix: resolve mismatch with types declaration and docs for resourceQuery
2021-05-19 07:06:08 +02:00
Tobias Koppers 08090a9fee
Merge pull request #13401 from webpack/pascal-readonly-array
accept a readonly array for configuration options
2021-05-19 07:03:10 +02:00
Tobias Koppers ad75cca1e0 Merge branch 'master' into pascal-readonly-array 2021-05-18 17:07:52 +02:00
Tobias Koppers 23f492f8ef update typings 2021-05-18 16:00:45 +02:00
Tobias Koppers c7d7940517 Merge branch 'master' into issue-13284 2021-05-17 16:22:54 +02:00
Tobias Koppers 0e881beb35 fix schema for absolute conditions and add test cases 2021-05-17 16:21:33 +02:00
Tobias Koppers 226a77c9d4
Merge pull request #13344 from webpack/dependabot/npm_and_yarn/typescript-4.2.4
chore(deps-dev): bump typescript from 4.2.0-beta to 4.2.4
2021-05-11 10:34:38 +02:00
Tobias Koppers b0fa9ccada pretty files 2021-05-11 09:31:46 +02:00
Tobias Koppers 8ae9e3687e update declarations 2021-05-11 09:26:40 +02:00
Tobias Koppers 3de13caba7
Merge pull request #13331 from dhruvit-r/bugfix/fs-call-signatures 2021-05-10 15:52:47 +02:00
Dhruvit Raithatha e085eebd6c make errors nullable for call signatures of filesystem types 2021-05-10 15:18:22 +05:30
Tobias Koppers 2e2cd6de85
Merge pull request #9856 from koto/tt-integration 2021-05-10 11:27:42 +02:00
Tobias Koppers 88da3f8ed2 normalize output.trustedTypes to an object 2021-05-10 10:34:21 +02:00
Tobias Koppers 7d42aa7a30 better types for normalized options 2021-05-10 09:58:27 +02:00
Tobias Koppers 869f9c8a8c use createScriptUrl only when needed 2021-05-10 09:58:27 +02:00
Tobias Koppers 4b1592d07a rename createScriptURL to createScriptUrl 2021-05-10 09:09:34 +02:00
Tobias Koppers bb8ba1cd05 disable trustedTypes by default
allow to pass a boolean as trustedTypesPolicy
2021-05-10 09:02:46 +02:00
Tobias Koppers 442a1ebca5 rename validate function to avoid conflict 2021-05-07 18:14:25 +02:00
Tobias Koppers 87c0d1cd94 Merge branch 'master' into johnnyreilly/master 2021-05-07 18:07:23 +02:00
Tobias Koppers 77f625ab09 upgrade tooling and update types.d.ts
fixed SourceMap
import Schema from validate function
2021-05-07 18:01:45 +02:00
Krzysztof Kotowicz 3561285ea8 Skip using Trusted Types checks if trustedTypesPolicyName is empty. 2021-05-07 10:30:57 +02:00
Bolarinwa Balogun 23df156f32 Add description to 'RuleSetLogicalConditions' definition 2021-05-06 18:54:18 -04:00
Bolarinwa Balogun 0d1e2f9c5b Apply requested changes 2021-05-06 07:57:33 -04:00
Bjarki b6e112dabe Only expose createScriptURL function from Trusted Types policy
Since createScriptURL is the only function that is used on webpack's
Trusted Types policy, replace the getTrustedTypesPolicy global with a
simpler createScriptURL global.

In terms of compiled code, this replaces the non-minifiable
tt().createScriptURL(url) with tu(url), which is more compact in terms
of code size.
2021-05-04 16:26:22 +02:00
Bjarki c71184958d Move Trusted Types policy into TrustedTypesRuntimeModule
Also make the policy available at runtime through
RuntimeGlobals.getTrustedTypesPolicy(), and update runtime dependencies
accordingly.
2021-05-04 16:12:41 +02:00
Krzysztof Kotowicz dbd095b44a Added the Trusted Types logic. 2021-05-04 16:12:34 +02:00
Krzysztof Kotowicz c816c135ca Removed a deprecated createURL function reference. 2021-05-04 16:06:37 +02:00
Bolarinwa Balogun 743b190816 fix: resolve mismatch with types declaration and docs for resourceQuery 2021-05-03 11:40:26 -04: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 0abe3df1c6
Merge pull request #13235 from webpack/feature/class-fields
add support for class fields
2021-04-27 11:37:04 +02:00
Tobias Koppers 94facd387d add support for class fields 2021-04-27 10:28:13 +02:00
Tobias Koppers 0aff7d2c63 avoid creating objects for location info when not accessed 2021-04-27 09:36:52 +02:00
Tobias Koppers acfea9dae4 improve module graph hashing via bigints 2021-04-23 14:51:24 +02:00
Tobias Koppers b71e0ced35 Merge branch 'master' into johnnyreilly/master 2021-04-22 21:52:48 +02:00
Tobias Koppers ea53a23827 improve LoaderContext declaration
upgrade tooling
2021-04-22 21:48:29 +02:00
Tobias Koppers 7cc40782b7 fix some internal types 2021-04-22 21:48:25 +02:00
Tobias Koppers e42915cf49 clean up types 2021-04-22 10:54:50 +02:00
John Reilly 984308ada9 generate types with yarn special-lint-fix 2021-04-22 09:44:54 +01:00
John Reilly 8cd30eb222 revert generic approach 2021-04-20 18:12:16 +01:00