Ivan Kopeykin
cdfb610bfa
fix restoring from cache
2022-02-08 21:40:18 +03:00
Ivan Kopeykin
02a7a9e90c
fix discussions. add/update test cases
2022-02-08 14:16:16 +03:00
Ivan Kopeykin
9951d9d4d9
handle several resources in ContextModule
2022-02-08 11:12:32 +03:00
Tobias Koppers
c41eb368f2
Merge pull request #15182 from webpack/bugfix/lib-ident-includes-layer
...
Module.libIdent is scoped by the module layer if there is one
2022-01-18 09:59:01 +01: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
6b83f85141
Module.libIdent is scoped by the module layer if there is one
2022-01-14 12:05:28 +01:00
Mark Molinaro
4faa5c7203
add test
2022-01-10 15:27:42 -08:00
Mark Molinaro
964fb971dd
fix: context regex non-deterministic with |
2022-01-10 15:15:21 -08:00
Asriel Yu
136b723023
fix callback err type should include null
2021-12-24 20:27:31 +08:00
Tobias Koppers
23c4907af5
fix bug in ContextModule, improve test case for lazy compilation
2021-05-31 18:16:21 +02:00
Juho Vepsäläinen
189a8863cd
chore: Allow passing a typePrefix to ContextElementDependency
...
This is needed to tell different usages apart. The added information is
used by the lazy compilation feature.
2021-05-31 14:46:38 +03:00
Tobias Koppers
b0fa9ccada
pretty files
2021-05-11 09:31:46 +02:00
Tobias Koppers
18967078cb
cleanup modules after compilation to avoid leaking references when they are cached
2021-03-15 11:23:54 +01:00
Tobias Koppers
95f23448a3
Merge pull request #12289 from hodovani/patch-2
...
Remove duplicate import
2021-01-15 14:16:23 +01:00
Tobias Koppers
7412e71ba5
Merge pull request #11471 from Adityaperiwal/bugfix/ContextModuleRegex
...
refactor regex
2021-01-04 11:51:54 +01:00
Matvii Hodovaniuk
cca8cde2c6
Remove duplicate import
2020-12-30 12:34:42 +02:00
Tobias Koppers
ac15f06f2a
improve handling of exported Promises
2020-11-16 20:24:54 +01:00
Tobias Koppers
11a7cac537
add useSimpleSourceMap flag to enable/disable OriginalSource for generated code
...
pass reduced options object to Source.map() function
2020-10-26 16:33:38 +01:00
Aditya
bb9168535d
refactor regex
...
add test for context module
refactor linting
refactor test
2020-10-06 21:19:29 +05:30
Tobias Koppers
be021e00f4
add grouping of modules
2020-09-01 18:31:22 +02:00
Tobias Koppers
d6e637f33c
add "snapshot" configuration to allow to configure how snapshots are created
...
expose snapshot options for module, resolve, buildDependencies and resolveBuildDependencies
move managedPaths and immutablePaths from config.cache to config.snapshot
add timestamp + hash snapshotting mode
use timestamp + hash mode by default in production and for buildDependencies
2020-08-26 01:27:13 +02:00
Tobias Koppers
dff76973e4
type fixes
2020-08-24 18:35:28 +02:00
Tobias Koppers
cee47dc867
Store cache dependencies inside of Snapshot to reduce cache size
2020-08-24 18:16:54 +02:00
Tobias Koppers
71cf7f4dc8
add support for reexporting in CommonJS
...
and necessary refactoring + fixes for that
2020-08-17 21:32:47 +02:00
Tobias Koppers
205bbb4c0d
improve compatibly with node.js ESM
...
improve experiments.mjs to be more compatibly with node.js ESM
- add support for `type: "module"` in package.json
- add support for `*.cjs`
- enable strict ESM for data uris with `text/javascript` or `application/javascript`
- disallow not fully specified requests in imports `*.mjs` or `type: "module"`
add `descriptionData` rule condition to match package.json info
fix passing resolveOptions along context modules
2020-07-17 13:58:29 +02:00
Tobias Koppers
5068909499
Avoid tracking/printing detailed usage info for modules without exportsType
...
Make ContextModule a static default exporting module
fix provided exports info for ExternalModule
2020-07-08 11:07:03 +02:00
Tobias Koppers
5f4c4662dd
rename parsePathQueryFragment to parseResource and add caching
2020-07-06 17:39:52 +02:00
Tobias Koppers
7442a211b9
add support for resource fragments
2020-07-03 17:03:15 +02:00
Tobias Koppers
525e416395
fix typing issue
2020-06-18 00:21:22 +02:00
Tobias Koppers
2abcfc0058
set dependency categories for all dependencies
2020-06-17 23:04:37 +02:00
Tobias Koppers
a4ac8f0328
Cleanup
2020-06-10 14:01:24 +02:00
Tobias Koppers
020cedf383
remove weird types
...
remove SKIP_OVER_NAME
update tooling for fixed "to not edit" comments
2020-05-12 15:58:43 +02:00
Nathan Shively-Sanders
362514c10b
fix 4.0 build errors
2020-05-12 14:37:09 +02:00
Tobias Koppers
a643278726
refactor exports info logic always represent exports object instead of namespace object
...
improve test case
2020-04-22 21:01:29 +02:00
Tobias Koppers
383b3354dd
fix typing issue in ContextModule
2020-03-30 10:01:52 +02:00
Mohsen Azimi
7b07a8db66
Upgrade to Prettier 2
2020-03-28 18:20:24 -04:00
evilebottnawi
dafa4cd69a
chore: setup cspell
2020-03-12 19:51:26 +03:00
Nitin Kumar
285529a643
chore: fix typos across the project
2020-03-10 07:29:46 +05:30
Tobias Koppers
6477ca56f8
Split options defaulting in normalization and defaults
...
Apply defaults after plugins are applied to allow plugins to feature their own defaults.
This allows to make preset plugins.
2020-02-17 19:12:54 +01:00
Tobias Koppers
522d80f33b
allocate less for empty Sets for runtime requirements and file/context/missingDependencies
2020-01-29 21:46:14 +01:00
Tobias Koppers
1070ce925b
remove Array.prototype.reduce calls to simplify code
2020-01-17 18:31:29 +01:00
jamesgeorge007
d97b4bd195
fix: typo
2020-01-17 17:59:04 +05:30
jamesgeorge007
39b3f4523c
fix: typo
2020-01-17 17:57:37 +05:30
Tobias Koppers
782e4535ac
Refactor how exportsType work
...
add flagged exportsType for __esModule flagged
add getExportsType to merge strict with exportsType
move CommonJsStuffPlugin into CommonJsPlugin
split CommonJsPlugin into imports and exports part
enable minimal tree shaking for CommonJs imports and exports
2019-12-06 11:13:08 +01:00
Sergey Melyukov
4b499b0429
minor fixes
2019-12-03 17:05:22 +03:00
Sergey Melyukov
ba306b6f2c
Merge remote-tracking branch 'upstream/master' into optimize-webpack-runtime-size
2019-12-02 19:54:21 +03:00
Sergey Melyukov
6b59d113a4
optimize webpack runtime size
2019-12-02 17:59:37 +03:00
Tobias Koppers
5a01ed8121
rename exportsType named to default
...
exportsType default doesn't include named exports in strict esm
2019-11-20 12:43:53 +01:00
Tobias Koppers
b90f3e14a1
upgrade webpack-sources
...
make source maps and source names context independent
add enhanced-resolve declarations
add types to Module.build
fix tooling for import order to support import renaming
add support for concatenated modules in eval source maps
2019-11-12 08:59:08 +01:00
Tobias Koppers
ddc3dae0e6
refactor Module.source() and Module.getRuntimeRequirements() into Module.codeGeneration
...
add code generation phase to Compilation
add `output.iife` options to remove iife wrapper
add `experiments.outputModule` which enabled `output.module`
add `output.module` which sets defaults to `output.iife: false`, `output.libraryTarget: "module"`, `output.jsonpScriptType: "module"`, `terserOptions.module: true`
add `output.module` example
improve runtime requirements needed by ConcatenatedModule
add entry inlining, which inlines entry module code into runtime scope (only when safe)
make whole bundle strict when all modules are strict
2019-10-08 23:59:48 +02:00