Commit Graph

572 Commits

Author SHA1 Message Date
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
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
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