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
long76
0239355b5b
fix: lint
2022-12-22 21:41:08 +03:00
long76
7b0788710a
fix some lint
2022-12-14 12:51:35 +03:00
long76
e45b75fa65
fix #16561
2022-12-14 12:31:27 +03:00
Ivan Kopeykin
806ee08c3f
support arrow function in umd
2022-03-18 18:58:50 +03:00
Ivan Kopeykin
cd3ec1da92
refactor top level declarations usage
2022-02-11 17:59:35 +03:00
Ivan Kopeykin
de7ec7bc07
refactor top level declarations
...
- add topLevelDeclarations to code generation results
- set topLevelDeclarations=undefined if any child topLevelDeclarations=undefined
2022-02-07 17:29:38 +03:00
Ivan Kopeykin
58a2fd01c4
refactor top level declarations
...
- add topLevelDeclarations to code generation results
- set topLevelDeclarations=undefined if any child topLevelDeclarations=undefined
2022-02-07 17:21:36 +03:00
Tobias Koppers
102014bf54
fix target expression
...
fix externals
add test case
2022-01-10 14:33:34 +01:00
Jacob Smith
75c9912d38
add new `output.library.type` per Tobias's feedback
2021-12-18 20:17:50 +01:00
Jacob Smith
6e244074d4
WIP: generate static property assignment exports
2021-12-15 23:54:31 +01:00
Ivan Kopeykin
edeaa6eb82
use "safe" global object
2021-11-23 20:40:03 +03:00
Yujun Jung
71fc88267f
lint
2021-08-16 21:06:43 +09:00
Yujun Jung
99bf506310
Update lib/library/ModuleLibraryPlugin.js
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-08-16 20:53:17 +09:00
Yujun Jung
8dd94755b2
Update lib/library/ModuleLibraryPlugin.js
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-08-16 20:53:07 +09:00
Yujun Jung
57fcea48bf
fix: exporting async module
2021-08-16 00:39:22 +09:00
Vladlen Fedosov
768bb00d26
fix: fixed work of the non-system type externals for "system" library target
2021-07-08 16:07:21 +03:00
Tobias Koppers
b0fa9ccada
pretty files
2021-05-11 09:31:46 +02:00
Tobias Koppers
cb494c9a8b
fix returning exports from runtime for libraries
...
fixes #13165
2021-04-22 09:32:17 +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
d5992633e6
offer a hook to opt-out of strict mode
2021-03-15 16:38:50 +01:00
chenxsan
3edaddf6d7
opt out of strict mode
2021-03-10 18:16:52 +08:00
chenxsan
45a439c75f
fix a grammar problem
2021-03-06 22:09:34 +08:00
Tobias Koppers
9f3950e571
add support for libraries combined with iife: false
...
fix missing runtime requirement for system.js context
fix inlining of modules when conflicting symbols are defined on top-level
2021-02-11 11:19:24 +01:00
Tobias Koppers
35807ca018
add very basic library type "module"
2021-02-09 21:28:18 +01:00
Tobias Koppers
7738de13d7
add COMMON_LIBRARY_NAME_MESSAGE to all libraries
2021-02-09 21:27:15 +01:00
Tobias Koppers
b7cbe9d36e
Merge pull request #11913 from snitin315/fix/error-message
2021-01-18 20:39:22 +01:00
Tobias Koppers
2f6bf31442
workaround for typescript bug
2021-01-18 16:57:05 +01:00
Tobias Koppers
1e988a109b
Merge branch 'master' into feat/issue_11571
2021-01-18 16:54:26 +01:00
Tobias Koppers
1ca9f85d4e
improve and align error message
2021-01-18 16:22:07 +01:00
Nitin Kumar
b5b62c4c34
AssignLibraryPlugin: improve error message for invalid library name
2021-01-18 16:16:36 +01:00
Tobias Koppers
788608770a
improve code and add test case
2021-01-07 16:21:27 +01:00
Kshitij Kotasthane
d0d8d1875c
Added validation for dashes(-) in ModuleFederationPlugin.name
...
Added proper check for validating plugin name
2021-01-07 10:07:47 +01:00
Tobias Koppers
0179d88d4b
improve checkEnabled error messages
2021-01-05 11:34:57 +01:00
Tobias Koppers
fd1a6d159e
refactor to avoid using `type` in plugin
2021-01-04 16:12:48 +01:00
Tobias Koppers
c847009d87
typescript workarounds
...
see https://github.com/microsoft/TypeScript/issues/41697
2020-11-30 08:42:35 +01:00
xiaoxiaojx
f25b09f783
feat: libraryTarget add assign-properties
2020-10-11 04:49:40 +08:00
Tobias Koppers
ed06a7f83a
new Worker() support
...
add support for async anonymous entrypoints from inside the codebase
add worker example
move entry options into Entrypoint and receive them from there
2020-09-08 07:37:20 +02:00
Tobias Koppers
07d863e14c
implement enabledChunkLoadingTypes approach
...
allow chunkLoading per entry
allow custom library/chunkLoading types
2020-08-28 10:59:37 +02:00
Tobias Koppers
e16bdfda6c
refactor used exports analysis, hashing, code generation, optimizations
...
to keep track of runtimes, used exports depending on runtime
modules can have different hashes and generated code depending on runtime
chunks are only considered as equal for MergeDuplicateChunks and SplitChunks when exports used in contained modules are equal
added `optimization.usedExports: "global"` to opt-out from used exports analysis per runtime
added `splitChunks.usedExports` and `splitChunks.cacheGroups[x].usedExports` to enable/disable used exports comparing for modules
`splitChunks.usedExports` defaults to `true` in production
2020-07-27 22:40:44 +02:00
Tobias Koppers
a66290a15f
add support for async externals
...
add `promise` external
add `import` external (uses import())
add `output.importFunctionName` option to change the `import()` function name
allow for inline external type when using arrays
fix some typings
fix namespace object behavior when using system external and accessing nested property
fix interop behavior for async dynamic modules
2020-05-19 17:25:43 +02:00
Nathan Shively-Sanders
362514c10b
fix 4.0 build errors
2020-05-12 14:37:09 +02:00
Tobias Koppers
b9c50fdb09
fix jsdoc documentations
2020-04-28 19:42:58 +02:00
Tobias Koppers
49a6184e20
add tests to increase code coverage
2020-04-16 22:20:04 +02:00
Tobias Koppers
7e5fdaafc0
Merge pull request #9119 from joeldenning/system-context
...
Exposing System.register _context variable to bundled code.
2020-03-30 11:06:59 +02:00
evilebottnawi
dafa4cd69a
chore: setup cspell
2020-03-12 19:51:26 +03:00
Joel Denning
ccd24605ef
Merge branch 'master' into system-context
2020-03-10 10:37:28 -06: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
Nitin Kumar
285529a643
chore: fix typos across the project
2020-03-10 07:29:46 +05:30