Tobias Koppers
952bc11510
fixes typing in ModuleGraph
2020-05-12 14:34:26 +02:00
Mohsen Azimi
1e0ad4ccd2
Upgrade to TypeScript 3.9
2020-05-12 14:34:24 +02:00
Tobias Koppers
93fddc0680
remove logic to finish modules in module graph
2020-05-05 22:12:27 +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
b4993f1ccc
Merge pull request #10503 from joeldenning/system-esmodule
...
Fix externals interop within SystemLibraryPlugin.
2020-03-10 15:38:38 +01:00
Tobias Koppers
c94aea82cc
enable export mangling for system.js externals
...
add __esModule flag only when needed
2020-03-05 14:07:55 +01:00
evilebottnawi
93dd2b0cfb
chore(deps): update eslint plugins
2020-03-04 12:37:14 +03:00
Tobias Koppers
bcf2f55ecb
remove ChunkGraph.getOrderedChunkEntryModulesWithChunkGroup as it makes no sense
2020-02-26 17:22:46 +01:00
Tobias Koppers
b53a128513
provide better error message when a export name was not found
2020-01-15 22:44:06 +01:00
Tobias Koppers
dd4d68ac8f
use Symbol to flag skipped export names
2019-12-06 11:13:14 +01:00
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
Tobias Koppers
ae261ed4c1
move default object redirect logic into separate meta property
2019-12-06 11:12:26 +01: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
accd66c3ba
Merge pull request #9971 from smelukov/deprecation-codes
...
Add deprecation codes
2019-11-15 12:04:47 +01:00
Tobias Koppers
74074a9b18
add deprecationCode argument to getChunk/ModuleGraphForChunk/Module
2019-11-15 10:07:41 +01:00
Tobias Koppers
e9f8e63593
Make RestoreProvidedData a custom class for visibility in profiles
2019-11-14 20:58:05 +01:00
Sergey Melyukov
a214be41a0
add deprecation codes
2019-11-14 17:03:15 +03:00
Tobias Koppers
c9f15d654c
allocate outgoingConnections Set only when needed
2019-11-10 21:05:23 +01:00
Tobias Koppers
efe0c2e610
avoid creating arrays in getConnections
2019-11-10 21:05:05 +01:00
Tobias Koppers
84b6817f60
consistency and bugfixes for reexporting json
2019-11-05 10:39:12 +01:00
Tobias Koppers
2f2125b4d1
add redirecting support to create correct exports info for exportsType=named
2019-11-05 10:38:02 +01:00
Tobias Koppers
14ee25cd0a
add support for tree-shaking JSON modules
2019-11-05 10:37:59 +01:00
Tobias Koppers
951792b8eb
ModuleGraph can get weak flag from dependency itself
2019-10-30 07:48:43 +01:00
Tobias Koppers
7724f75176
fix typo
2019-10-30 07:48:39 +01:00
Tobias Koppers
8d46b21fad
add Dependency.getCondition and conditional ModuleGraphConnections
...
getDependencyReference is no longer used to check of connection
2019-10-30 07:48:32 +01:00
Tobias Koppers
09d6301712
Move weak flag from DependencyReference to Dependency
2019-10-30 07:48:26 +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
Tobias Koppers
fb13b76b34
add `__webpack_exports_info__` API to allow export introspection
...
improve usage/provide information for nested exports
improve tests for deep exports
2019-08-22 16:59:37 +02:00
Tobias Koppers
316319aab8
Optimize setting issue on modules
2019-08-07 16:14:01 +02:00
Tobias Koppers
741398427a
Cache last access in ModuleGraph
2019-08-07 16:14:00 +02:00
Tobias Koppers
e95d33b77e
Improve performance of ExportsInfo.sortExports
2019-08-07 16:13:59 +02:00
Tobias Koppers
c59df0a542
improve getUsedName performance
2019-08-07 16:13:59 +02:00
Tobias Koppers
6db94536ad
Merge tag 'v4.34.0' into next
...
4.34.0
2019-06-13 10:51:12 +02:00
Tobias Koppers
1977cb1036
move async module flag to ModuleGraph
2019-06-05 11:15:25 +02:00
Tobias Koppers
a2114cbef9
use correct name, when other exports is referenced
2019-05-29 13:47:18 +02:00
Tobias Koppers
43bc7a306e
Refactor to track nested exports
...
Harmony dependencies track access to nested properties
Flag nested exports
2019-05-29 11:55:00 +02:00
Tobias Koppers
aa305969f4
Merge tag 'v4.29.1' into next
...
4.29.1
2019-02-04 19:03:31 +01:00
Tobias Koppers
b6ad10b2c1
bugfixes and HarmonyExportImportedSpecifier optimization
2019-02-01 11:45:24 +01:00
Tobias Koppers
6fc0b96c9c
add MangleExportsPlugin and options
2019-01-31 11:41:30 +01:00
Tobias Koppers
739fef4fda
move usedExports into ExportsInfo
2019-01-28 08:38:37 +01:00
Tobias Koppers
921b295bc9
Create ExportsInfo and move provided exports and mangle info into this new object
2019-01-28 08:38:34 +01:00
Tobias Koppers
eac069a46b
move isProvided into ModuleGraph
2018-12-31 12:51:35 +01:00
Tobias Koppers
8c9dc4cfc8
providedExports can't be false
2018-12-31 12:43:03 +01:00
Tobias Koppers
a414c616cd
used and provided exports are part of module attributes
2018-12-31 12:29:02 +01:00
Florent Cailhol
a42922f663
Move provided exports to the module graph
2018-12-31 12:28:51 +01:00
Tobias Koppers
e5e0f44e29
add algorithm to extract graph roots
...
show only graph roots in chunks by default
2018-12-06 20:57:04 +01:00
Tobias Koppers
a852828279
add persistent caching prototype
2018-10-17 21:25:39 +02:00
Tobias Koppers
bd18e019d4
Clone module attributes instead of moving them
2018-09-03 20:12:55 +02:00
Tobias Koppers
b20556c1ff
move profile to ModuleGraph
2018-08-22 14:54:28 +02:00
Tobias Koppers
26022c86a0
move Module.depth into ModuleGraph
...
nested modules no longer have depth and stay unsorted in stats
2018-08-22 12:45:11 +02:00