Commit Graph

95 Commits

Author SHA1 Message Date
ahabhgk 3afed0618b fix module rule output path 2024-06-10 22:29:15 +08:00
alexander.akait 3e3dfd781b fix(types): more 2024-03-17 20:15:44 +03:00
alexander.akait 9f63f7013a refactor: more types 2024-02-16 20:39:12 +03:00
Nitin Kumar 412ae5425e chore: udpate prettier to v3 2024-01-14 07:11:34 +05:30
alexander.akait 4809421990 refactor(types): more 2023-06-21 19:00:24 +03:00
alexander.akait fb7c0c637a refactor: strict types for assets and json and other 2023-05-25 01:09:00 +03: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
alexander.akait 02590bfdc7 chore: improve types 2023-04-21 19:22:33 +03:00
alexander.akait 5765c9abc1 fix: bugs 2023-04-13 03:10:12 +03:00
Ivan Kopeykin 5f86eb58da add asset modules concatenation 2022-03-11 16:59:28 +03:00
Tobias Koppers 936fa78495 avoid hasing the default encoding 2022-02-28 09:45:00 +01:00
Tobias Koppers 224964601d improve hashing 2022-02-22 12:23:24 +01:00
Tobias Koppers 5a446d81e3 Merge branch 'main' into fix-14839 2022-02-22 11:12:13 +01:00
Ivan Kopeykin f1d329cc0e use nonNumericOnlyHash function for contentHash 2022-02-01 20:10:45 +03:00
Tobias Koppers 17f317bef2 store url as Buffer to avoid serialization warnings
makes deserialization cheaper
2022-01-21 15:52:51 +01:00
Tobias Koppers e2bfe58994 nitpicks 2022-01-19 09:18:17 +01:00
Karlis Gangis 2fc4c8da1b Add 'outputPath' configuration option for resource asset modules 2022-01-18 13:45:42 +02: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
evilebottnawi eaaccf9d6c fix: handle content from loaders 2022-01-17 18:52:55 +03:00
evilebottnawi 420e8b6815 fix: logic 2022-01-17 18:47:49 +03:00
evilebottnawi f21930b588 fix: handle content from loaders 2022-01-12 19:27:37 +03:00
Asriel Yu 136b723023 fix callback err type should include null 2021-12-24 20:27:31 +08:00
Tobias Koppers ccecc17c01
Merge pull request #14894 from webpack/feature/css-modules
Initial work towards native css support
2021-12-17 23:43:51 +01:00
Tobias Koppers 284d536312 nitpicks 2021-12-17 10:34:42 +01:00
evilebottnawi 3a5de5b421 fix: info merging for asset modules 2021-12-06 15:15:48 +03:00
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 8d8e2e3fa4 fix asset module hash 2021-11-29 19:37:32 +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
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
Jan Potoms d9c09ee7f2 Fix generator publicPath behavior when empty string 2021-07-24 17:02:09 +02:00
Tobias Koppers cdc9efefbe avoid copying source types and sizes cache from unsafe cache to cached module
fixes #13827

avoid pre-computing source types and sizes on cleanup for not-built modules (e. g. from unsafe cache)
improve eror message when asset rendering fails
2021-07-22 09:52:56 +02:00
Tobias Koppers daa40670fc keep original encoding when transforming data url to data url 2021-07-16 20:35:19 +02:00
evilebottnawi c45064f912 fix: encoding 2021-07-16 18:04:30 +03:00
evilebottnawi 478457ba48 fix: case insensitivity 2021-07-16 17:17:23 +03:00
evilebottnawi d25cbc5211 fix: data URI for `image/svg+xml` 2021-07-16 17:14:02 +03:00
Tobias Koppers e6f098903f fixes #13691 2021-07-05 11:22:13 +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 e21b1d46fe precompile schemas for improved startup performance 2021-04-16 16:02:58 +02:00
Tobias Koppers f46e816a38 add HMR test case and fix problems with it 2021-04-14 16:03:59 +02:00
Tobias Koppers ea3e0a39ac add experiments.executeModule
rename runModule -> executeModule
improve error reporting
2021-04-12 12:27:55 +02:00
Tobias Koppers 1d35cf13e3 fix cache dependencies, assets and persistent caching 2021-04-12 12:27:54 +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 7f362c816f merge related info correctly 2021-03-22 15:08:06 +01:00
Tobias Koppers c5fa7510f2 remove `output.assetModulePublicPath` as it would be redundant to `module.generator.asset.publicPath`
add test case for assetInfo merging
2021-03-22 15:05:50 +01:00
xiaoxiaojx 55fd79ee6a feat: support assetModulePublicPath 2021-03-20 17:53:01 +08:00
Tobias Koppers 7572217e97 add `emit` option for asset modules
fixes #12474
2021-03-11 18:45:34 +01:00