Commit Graph

56 Commits

Author SHA1 Message Date
Tobias Koppers b2e7837288 replace Object.assign with object spread 2019-06-19 13:16:05 +02:00
Tobias Koppers e4ba79f0b8 add type coverage for ContextModuleOptions and GroupOptions 2019-06-14 11:44:54 +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 fd4b3c503a pretty files 2019-06-09 11:23:42 +02:00
Tobias Koppers 8cf1cdb74f Merge tag 'v4.25.0' into next
4.25.0
2018-11-05 10:27:45 +01:00
Zhibin Liu 25af83f288 fix after comments 2018-10-30 19:39:43 +08:00
Tobias Koppers 4174521f9d remove unnecessary module arguments from module attached errors 2018-10-29 22:18:08 +01:00
Zhibin Liu d3041bc816 only walk expressions that are not replaced by ContextDependency 2018-10-30 00:33:58 +08:00
Zhibin Liu c5a7febe3c [ImportParserPlugin] when need creating context, should return false instead of true 2018-10-29 00:19:47 +08:00
Tobias Koppers f987d82979 move creation of ImportDep out of ImportDepBlock constructor 2018-10-17 23:09:21 +02:00
Tobias Koppers f23ce49040 remove module argument from AsyncDepBlock
reorder/remove arguments of ImportDepBlock, AMDRequireDepBlock, RequireEnsureDepBlock
2018-10-17 23:07:01 +02:00
Tobias Koppers 17044bf9c6 Merge tag 'v4.20.0' into next
4.20.0
2018-09-25 16:20:42 +02:00
Tim Neutkens 2671d88b37 Fix typo 2018-09-21 23:24:18 +02:00
Tobias Koppers c21d59f783 Merge tag 'v4.17.0' into next
4.17.0
2018-08-21 11:02:16 +02:00
Mihail Bodrov 1f954b4f12 Get rid typeof undef in all lib 2018-08-21 03:26:50 +03:00
Tobias Koppers 3618cc1b3c remove originModule from Dependencies and add parent module to ModuleGraph 2018-08-07 14:20:53 +02:00
Tobias Koppers cf5f1d723c format existing code 2018-07-30 21:29:21 +02:00
Tobias Koppers f65a24d9db move warning into separate file 2018-06-04 11:20:43 +02:00
Tobias Koppers 9528aa5cbd fixup test and error 2018-06-04 11:18:32 +02:00
Tobias Koppers 34b6b13616 Pass message to base class 2018-06-04 11:18:32 +02:00
Tobias Koppers 6789a5e144 Merge branch 'master' into feature/webpack-options-compile-errors-warning 2018-06-04 11:18:20 +02:00
Tobias Koppers 53103a9690 Cleanup error location and origin information 2018-06-04 10:35:46 +02:00
Ronan Amsterdam a228daec58 magic comment regexp match update and statsCase test updated
plus minor renamings and snapshot update
2018-05-30 13:18:43 +08:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Florent Cailhol 25ec7e4102 Do not stop processing on error 2018-05-29 13:17:36 +02:00
Florent Cailhol 4b1a76bdb0 Deprecate Parser.getCommentOptions
Use Parser.parseCommentOptions(range) instead.
2018-05-29 11:09:34 +02:00
Ronan Amsterdam d91e7ecafc getCommentOptions renamed to getCommentOptionsStrict
and wrapped back in getCommentOptions to avoid possible breaking changes
2018-05-29 16:25:10 +08:00
Ronan Amsterdam 1969485f05 warning class and propagation added to ImportParserPlugin
and invalid-import tests moved to the statsCases
2018-05-29 15:29:23 +08:00
Tobias Koppers 32bbb8445c
Merge branch 'master' into feature/import_ignore 2018-04-23 21:34:07 +02:00
Tobias Koppers 17eb5b4700 rename priority to order 2018-04-16 18:00:34 +02:00
Tobias Koppers 014e65e27e rename webpackPrefetchPriority to webpackPrefetch
rename webpackPreloadPriority to webpackPreload
allow true as parameter (equals 0)
2018-04-16 17:43:13 +02:00
Tobias Koppers 9cb1a66317 add support for link preload/prefetch
`import(/* webpackPrefetchPriority: 10 */ "...")`
`import(/* webpackPreloadPriority: 10 */ "...")`
2018-04-16 11:29:25 +02:00
Florent Cailhol f65e9dac98 Add comment directive to disable import parsing 2018-04-13 08:48:33 +02:00
Florent Cailhol f1092ad516 Update prettier toolchain 2018-03-26 16:56:10 +02:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Florent Cailhol 3fb63f94cc Deprecate System.import() parser plugin
- `system: undefined`: Warns if `System.import()` is used
- `system: true`: Disable warning
- `system: false`: Skip `System.import()` instrumentation
2018-01-18 11:34:02 +01:00
Tobias Koppers 2aac6badd5 move generated runtime code to RuntimeTemplate 2017-12-22 19:41:28 +01:00
Florent Cailhol 9669c9e013 Use Parser#hooks instead of Tapable#plugin 2017-12-21 09:08:10 +01:00
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