Tobias Koppers
ffb977fed4
refactor meta -> buildMeta, add factoryMeta
...
add compat layer to Module.meta
2017-12-12 16:57:50 +01:00
Tobias Koppers
3803c8ad4e
handle non-esm correctly in import()
...
return namespace object in normal import() and context import()
add namespaceObject flag to ContextModule options
change tests for updated behavior
2017-12-04 12:58:32 +01:00
Tobias Koppers
ea56916d53
rename `async` to `mode` in context options
...
`async: false` is now `mode: "sync"`
2017-10-16 14:49:51 +02:00
Tobias Koppers
9075637b39
Refactor contextOptions
2017-10-16 12:59:36 +02:00
Tobias Koppers
4b9939e303
check for null case
2017-10-16 12:15:27 +02:00
Landon Crapo
0a141f21c8
fixed failing tests
2017-10-13 17:51:01 -06:00
Landon Crapo
bc6c1be90c
refactoring filter to include and other requested changes
2017-10-13 15:41:44 -06:00
Landon Crapo
5d1759fd4c
modified import context filtering logic to filter on file names.
2017-10-13 15:41:02 -06:00
Landon Crapo
f884136861
created filter logic for dynamic import statements
2017-10-13 15:41:01 -06:00
Tobias Koppers
94e0fcb80a
rename eager-weak to weak in import() comment
...
rename ImportEagerWeak to ImportWeak
rename "eager-weak" asyncMode to "async-weak"
weak dependencies don't need to be in dependencies blocks
2017-07-26 14:49:37 +02:00
James Gillmore
02edc0f90d
fix($warning): mention eager-weak in warnings
2017-07-26 13:12:59 +02:00
James Gillmore
8bca2dc95c
fix/feat($weak): add context support for resolveWeak + create eager-weak asyncMode
2017-07-26 13:12:59 +02:00
Tobias Koppers
22e7d254ee
Add webpackMode optios for import()
...
Allow lazy, lazy-once and eager mode for import()
Fix a bug which caused context chunks to be merged when using chunk name
Allow to work in env where there is no Promise.resolve
2017-05-05 09:03:24 +02:00
Tobias Koppers
180f5e541c
refactor to simpler way of extracting options from comments
2017-04-10 11:36:39 +02:00
mc-zone
b65432a2f1
Add specify chunk name feature for `import()`
...
Add specify chunk name feature for `import()` by following special comment block after the param:
import('./foo' /* webpackChunkName = "myChunkName" */)
Thus we can use chunk name like `requre.ensure` and avoid conflicts with the specification.
2017-03-26 17:18:30 +08:00
Tim Sebastian
51ccbd4599
make use of block scoping of let/const in RequireResolveDependencyParserPlugin ImportParserPlugin
2017-02-05 12:20:23 +11:00
Shubheksha Jalan
ee24fb8ddd
refactor(ES6): upgrade ImportParserPlugin to ES6
2017-01-11 23:28:05 +05:30
Tobias Koppers
11eefd5841
added import(), fixes #3098
2016-12-03 11:50:44 +01:00