Alexander Akait
13560eac2e
fix: a lot of types
2024-08-06 18:38:15 +03:00
alexander.akait
adf2a6b7c6
fix: a lot of types
2024-08-06 06:08:48 +03:00
fi3ework
ce24bb03c2
feat: add new external type "module-import"
2024-08-05 17:03:09 +08:00
ahabhgk
9c9cb0bcdd
feat: override strict for javascript module
2024-07-03 16:32:36 +08:00
ArcanoxDragon
b6f164b2a9
Add a generator option for asset modules to prevent automatic conversion to Buffer (which causes source maps to be lost). Fixes #18438
2024-06-11 14:25:05 -05:00
alexander.akait
ba4db838e9
feat: added `with` ruleset rule
2024-06-10 20:40:50 +03:00
ahabhgk
7ff0a7a13e
feat: support css esModule generator options
2024-04-26 14:53:52 +08:00
ahabhgk
bf2571b957
remove exportsConvention for css
2024-04-20 12:10:56 +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
9c61ce5694
test: fix
2024-03-25 16:07:02 +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
cf891a4164
fix: resolve's plugins types
2024-03-11 15:35:28 +03:00
ahabhgk
074fccb38b
feat: add css head data compression
2024-03-06 14:29:57 +08:00
ahabhgk
d4dc533fc3
feat: support css local ident name
2024-02-22 20:10:45 +08: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
9f63f7013a
refactor: more types
2024-02-16 20:39:12 +03: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
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
Sayan751
7d8799ac4b
added unmanagedPaths to snapshot options
2023-10-04 23:28:11 +02:00
alexander.akait
cc734af66e
refactor(types): more
2023-06-22 02:45:07 +03:00
alexander.akait
3dc2bb8488
chore: update deps and tests
2023-06-14 18:25:38 +03:00
alexander.akait
1de7d5306b
test: update
2023-06-14 18:25:31 +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
83090d2189
refactor: avoid boolean
2023-06-12 21:56:08 +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
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
65ee99d136
feat: support `environment` in loader context
2023-05-31 17:59:55 +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
Nitin Kumar
e7ae10a4dc
feat(SourceMapDevToolPlugin): support `append` option as a function
2023-05-24 11:19:08 +05:30
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
Burhanuddin Udaipurwala
ba9812800c
feat: update webpack types to support extends property in webpack config file
2023-05-01 11:02:59 +05:30
Sam Brett
f5d368efa6
feat: ignoreBrowserWarnings option to ignore browser console warnings
2023-04-20 10:51:37 -07: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
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
954d98a92a
special lint fix
2023-03-15 18:09:00 +08:00
Adam Skoufis
5f34acfbc0
feat: Add `target` to `LoaderContext` type
2023-03-07 09:45:21 +11:00
Thomas Tay
13be78b0b8
lint fixes
2023-01-25 13:09:47 -08:00
Thomas Tay
2e64c4455c
add into output schema
2023-01-25 12:37:57 -08:00
Thomas Tay
0df564bc98
Make workerPublicPath optional and update docs
2023-01-25 12:17:15 -08:00
long76
8c20d74992
replace globalObject to amdContainer, add tests
2023-01-02 16:32:11 +03:00
long76
d371a69e58
fix library options
2022-12-22 22:14:02 +03:00
Thomas Tay
895df2a5a1
Worker public path changes
2022-10-21 16:30:43 -07: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
Ivan Kopeykin
767f7414cf
fix webpack scheme
2022-07-21 19:16:24 +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
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
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
David Tanner
4f2adf9d02
Allow banner to be placed as a footer
2022-04-01 12:29:34 -06:00
Ivan Kopeykin
ee911c6aae
add createRequire javascript parser option
2022-03-28 17:16:31 +03:00
Ivan Kopeykin
5a9ead926a
fix discussion
2022-03-15 16:47:07 +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
Ivan Kopeykin
8f8ba9194c
Merge branch 'main' into feature/errors-warnings-space
...
# Conflicts:
# schemas/WebpackOptions.check.js
2022-03-04 09:40:26 +03:00
Ivan Kopeykin
f51e099a2d
add parserOptions.importMetaContext option
2022-03-03 13:22:21 +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
Tobias Koppers
224964601d
improve hashing
2022-02-22 12:23:24 +01:00
Ivan Kopeykin
2665fb118c
add baseUri entry option
2022-02-21 16:23:47 +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
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
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
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
Tobias Koppers
16784692d3
add `output.cssChunkFilename`
2021-12-17 12:18:01 +01:00
Tobias Koppers
77b5589c1a
css generation and hmr
2021-12-03 08:46:22 +01: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
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
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
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