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
Tobias Koppers
712711d2a1
setters are non-optional
2020-03-09 11:03:41 +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
Joel Denning
3d3d20e353
sokra's feedback
2020-03-04 10:53:07 -07:00
Joel Denning
d3b44c96a0
Fix externals interop within SystemLibraryPlugin.
2020-03-03 19:01:00 -07:00
Joel Denning
76d5cd579c
Exposing System.register _context variable to bundled code.
...
Making __system_context__ available to code splits.
Fixing git problem
Making PR compatible with webpack 5
Undoing prettier changes to open-bot
Adding test
Triggering build
Triggering build
Reimplementing with new file
Exposing System.register _context variable to bundled code.
Making __system_context__ available to code splits.
Making PR compatible with webpack 5
Undoing prettier changes to open-bot
Adding test
Triggering build
Triggering build
Self review
Self review
Fixing license
Removing deleted file
Fix
2020-02-29 15:24:52 -07:00
Tobias Koppers
70fc2f7392
code cleanup from review
2020-02-26 17:36:44 +01:00
Tobias Koppers
ed097f08d9
fix accessWithInit helper function
2020-02-26 17:36:28 +01:00
Tobias Koppers
88e6c5e2a7
add library option to entry description
2020-02-26 17:36:16 +01:00
Tobias Koppers
f1dd328779
refactor library system
2020-02-26 17:35:52 +01:00