Ivan Kopeykin
de18533373
update import.meta
...
- add evaluation to import.meta and import.meta.url
- bare import.meta is disallowed
2020-06-24 22:47:43 +03:00
Ivan Kopeykin
1beb4e5707
support import.meta
2020-06-23 01:03:52 +03:00
Tobias Koppers
83495dc3aa
update typings
2020-06-18 00:26:35 +02:00
Tobias Koppers
0397701d85
improve types, moved byDependency logic into ResolverFactory
2020-06-17 22:17:14 +02:00
Ivan Kopeykin
bfd447be01
upgrade tapable
2020-06-17 16:53:14 +03:00
Ivan Kopeykin
8174145782
upgrade enhanced-resolve
2020-06-17 14:22:37 +03:00
Ivan Kopeykin
e58c64912b
fix lint
2020-06-16 22:09:07 +03:00
Ivan Kopeykin
9061a5ca94
add RESOLVE_OPTIONS to resolveMatchedConfigs
2020-06-16 21:20:46 +03:00
Ivan Kopeykin
198e51a485
Merge branch 'master' into exports-field
...
# Conflicts:
# lib/dependencies/ImportDependency.js
# lib/sharing/ConsumeSharedPlugin.js
# lib/sharing/ProvideSharedPlugin.js
# types.d.ts
2020-06-16 21:16:41 +03:00
Tobias Koppers
c00fec3aa7
Merge pull request #10964 from pushkar100/feature/lazy-load-named-exports
...
Lazy loading only required exports from dynamic import()
2020-06-16 15:04:06 +02:00
Tobias Koppers
d16f581d79
Merge pull request #11003 from resistdesign/patch-1
...
chore(Compilation EntryData includeDependencies):
2020-06-16 15:03:28 +02:00
Tobias Koppers
ad56d8abb1
improve handling of relative/absolute requests in the ProvideSharedPlugin
2020-06-15 16:20:34 +02:00
Ryan Graff
9160a0d3fd
chore(Compilation EntryData includeDependencies):
...
Update typings.
2020-06-13 18:05:35 -04:00
Tobias Koppers
1c42f71250
allow to provide and consume multiple versions of shared modules
2020-06-13 14:45:37 +02:00
Tobias Koppers
dc37d6910a
add finishMake hook to Compiler
2020-06-10 16:28:59 +02:00
Tobias Koppers
a4ac8f0328
Cleanup
2020-06-10 14:01:24 +02:00
Ivan Kopeykin
d2a08e3cc8
rework how byDependency applied
...
remove dependencyType parameter for resolver factory
add dependencyType option in enhanced resolve options
2020-06-09 01:32:24 +03:00
Ivan Kopeykin
2f7510abd2
add restrictions option
2020-06-08 23:54:59 +03:00
Pushkar DK
31e3369a73
Add 'webpackExports' & make only referenced exports available in import()
2020-06-06 00:11:21 +05:30
Tobias Koppers
3df380e2d7
add script external
...
change defaults of ModuleFederationPlugin to var library and script remoteType
allow using empty entry in config
2020-06-04 03:18:07 +02:00
Tobias Koppers
6f48c209d8
upgrade tooling
2020-06-02 12:30:37 +02:00
Ivan Kopeykin
57bd6ed348
Merge branch 'master' into exports-field
...
# Conflicts:
# lib/container/OverridablesPlugin.js
2020-06-01 15:14:47 +03:00
Tobias Koppers
707a103262
merge resolve.byDependency defaults with user provided values
...
allow to use resolve.byDependency in module.rules
2020-05-28 19:55:14 +02:00
Ivan Kopeykin
d4b1819749
add ability to set resolve options per dependency category
...
- byDependency option
- create resolver per dependency category
2020-05-28 02:30:29 +03:00
Ivan Kopeykin
b7098ae52b
define dependency category as string instead of enum
2020-05-27 22:57:45 +03:00
Ivan Kopeykin
52f3d60d44
fix typo
2020-05-27 22:47:37 +03:00
Tobias Koppers
1879e46e04
fix sharing test cases
2020-05-27 16:02:41 +02:00
Tobias Koppers
6f5d229661
add singleton shared modules
2020-05-27 15:10:57 +02:00
Tobias Koppers
bb30ea2216
automatically determine version of shared module from package.json
2020-05-27 11:53:59 +02:00
Ivan Kopeykin
dea031475e
add dependency category property
2020-05-26 23:56:24 +03:00
Tobias Koppers
bf4f8c1d66
remove all overrides and overridables related code
2020-05-26 21:39:40 +02:00
Tobias Koppers
e78a76b2e0
remove all overrides and overridables related code
2020-05-26 17:26:28 +02:00
Tobias Koppers
32217e95fb
add missing descriptions
2020-05-26 17:17:44 +02:00
Tobias Koppers
edf03440ba
add SharePlugin
...
let ModuleFederationPlugin use the SharePlugin
update container test cases to new behavior
2020-05-26 17:11:21 +02:00
Tobias Koppers
1b3246361b
add consume shared module plugin
2020-05-25 23:14:19 +02:00
Ivan Kopeykin
bf3633ee1b
add exportsFields and conditionNames options
2020-05-25 14:44:50 +03:00
Tobias Koppers
83cdba368f
add provide shared module plugin
2020-05-25 10:50:37 +02:00
Tobias Koppers
49752a06a8
cleanup asset processing
...
deprecate writing to compilation.assets after sealing.
merge all asset processing into single hook with stages.
Deprecate additionalChunkAssets and optimizeChunkAssets.
Redirect additionalAssets, optimizeAssets to processAssets for backward-compat.
Remove finishAssets hook without deprecation as it was not in v4.
2020-05-22 10:39:21 +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
Tobias Koppers
fde5b3df11
allow to concatenate modules when used exports are known
2020-05-19 14:42:21 +02:00
Tobias Koppers
fdf43eab16
Connect more info about exports when using export *
2020-05-19 03:16:21 +02:00
Tobias Koppers
4f194f0748
advanced configs for container plugins
...
refactor options parsing to allow advanced config options
automatic scoping has been removed and a scope method is offered instead
move shared schema definitions into a shared schema to allow to sync them
allow to pass multiple modules to a single exposed name
they are all executed and the last one is exported
allow to pass multiple container locations to remotes
they are tried in order, falling back to the next one when one fails
allow remotes to be promises as preparation of async externals
2020-05-14 15:50:35 +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
Tobias Koppers
c76090f18e
improve StatsPrinter types
2020-05-12 14:37:12 +02:00
Nathan Shively-Sanders
8603fd75a6
fix 3.9 build errors
2020-05-12 14:37:02 +02:00
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
15eefadcea
Merge pull request #10838 from webpack/dev-1
...
Merge Module Federation into webpack 5 beta
2020-05-05 23:57:00 +02:00
Tobias Koppers
93fddc0680
remove logic to finish modules in module graph
2020-05-05 22:12:27 +02:00
Tobias Koppers
24d1ca50b7
generate useful module ids for container-related modules
2020-05-05 21:51:17 +02:00