Commit Graph

60 Commits

Author SHA1 Message Date
alexander.akait be1d35eb02 fix(types): more 2024-03-18 18:50:56 +03:00
alexander.akait ca2fe13c8a chore(types): more 2024-01-26 20:38:18 +03:00
alexander.akait e226101c55 refactor(types): more 2023-06-21 19:00:24 +03:00
Sean Larkin 4a8035f2b5
Merge pull request #17228 from burhanuday/refactor/burhan-use-globals
refactor: use global constant for __webpack_require__ instead of string literal
2023-05-24 07:16:33 -07:00
alexander.akait d58b0c9c26 refactor: types more 2023-05-22 00:47:28 +03:00
Burhanuddin Udaipurwala 8d8a0e0e56 refactor: use global constant instead of string literal 2023-05-19 21:25:47 +05:30
Tobias Koppers 0c4e157196 fix incorrect parsing of define functions
fix invalid code when using declaring local modules and arrow functions are supported
2021-02-11 11:18:40 +01:00
Tobias Koppers 2abcfc0058 set dependency categories for all dependencies 2020-06-17 23:04:37 +02:00
Tobias Koppers 3b4a7455df use parser state instead of module to store harmony/dynamic exports state
this is important for incremental build
2019-12-07 01:04:38 +01:00
Tobias Koppers d9a2b7997a refactor dynamic and harmony exports parser state
bailout when using AMD define
2019-12-06 11:13:15 +01:00
Tobias Koppers a877cd51d1 add presentational dependencies which are cheaper, but allow only templating 2019-10-30 07:49:20 +01:00
Tobias Koppers ab169893a1 refactor Parser to allow variable tagging
use variable tagging in harmony pluging (instead of magic renaming)
Parser no longer calls hooks.expression for x in `x = ...`, hooks.pattern is called instead
remove rootName argument from hooks.expressionMemberChain and hooks.callMemberChain
2019-09-03 14:17:46 +02:00
Tobias Koppers 7c37a6a972 handle runtime requirements 2018-11-29 16:07:17 +01: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
Zhibin Liu d3041bc816 only walk expressions that are not replaced by ContextDependency 2018-10-30 00:33:58 +08:00
Tobias Koppers 1500a9da5c refactor LocalModule to remove module reference to allow serializing 2018-10-17 21:25:46 +02:00
Tobias Koppers cf5f1d723c format existing code 2018-07-30 21:29:21 +02:00
Florent Cailhol 41dd5a9ed1 Convert LocalModulesHelpers 2018-07-26 22:37:36 +02:00
Tobias Koppers ad8f496745 arrow functions, remove or improve eslint-disable comments 2018-06-27 13:48:13 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Florent Cailhol b7af625659 Force LocalModuleDependency arity to 3 2018-04-10 09:22:34 +02:00
Florent Cailhol a5ae054b1e Ensure the type of the binding don't change 2018-04-04 13:53:55 +02:00
Florent Cailhol 72786beee7 Use ellipsis instead of '...' 2018-03-22 10:54:18 +01:00
chuckd 2b40491c00 Code review changes 2018-03-16 12:57:57 -04:00
chuckd c86cc80c0c Remove erronious this.parser assignments in apply methods 2018-03-05 11:10:46 -05:00
chuckd 2428b14ab3 Fix linter error 2018-03-05 10:22:38 -05:00
chuckd 1b37115e4b Make AMD parser modules extensible 2018-03-05 09:51:36 -05:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
EugeneHlushko 2aab060f26 Refactor: indexOf >< checks to includes 2018-01-11 18:58:39 +02:00
Florent Cailhol 9669c9e013 Use Parser#hooks instead of Tapable#plugin 2017-12-21 09:08:10 +01:00
Tobias Koppers c10da6c285 upgrade tapable from Parser 2017-11-28 10:25:48 +01:00
Tobias Koppers c02ca7705a Merge branch 'master' into next 2017-11-20 20:18:03 +01:00
Brian Schlenker 007b14eb10 Handle amd define with arrow function 2017-11-18 10:33:48 -08:00
Tobias Koppers f7c2f8e470 Update code style to arrow functions 2017-11-08 11:56:01 +01:00
Tobias Koppers 03b0ff2c9c Merge branch 'master' into next 2017-10-11 12:42:31 +02:00
chuckd 2c457c6363 Make define dependency object creation overridable. 2017-10-09 15:21:01 -04:00
Tobias Koppers d9e01d4a5f use more efficient data structures
Parser.definitions and Parser.renames are using Maps now
2017-08-11 12:23:58 +02:00
zastavnitskiy c0314a59f1 1. webpack source definitions are now one-liners
2. Pass module id from dependency to generated source code
2017-04-03 11:35:18 +02:00
Tobias Koppers 752bde4a40 fixes minor typo 2017-02-03 13:47:31 +01:00
Shubheksha Jalan 35987161df removed unnecessary context args 2017-01-26 04:17:26 +05:30
Shubheksha Jalan 7c4352a486 refactor(ES6): upgrade AMDDefineDependencyParserPlugin to ES6 2017-01-26 04:11:20 +05:30
Tobias Koppers f7d799adb4 rebeautify without spacing after keyword 2015-07-16 00:19:23 +02:00
Avi Haiat 0a340f2b1a feat(app): Beautify all lib files 2015-07-13 01:20:09 +03:00
Tobias Koppers cebd3b9722 added linting 2015-04-23 23:55:50 +02:00
Will Binns-Smith 5b0e9a7bc6 Resolves #727: Resolve AMD module dependencies relative to named modules being defined. 2015-01-31 00:26:12 -08:00
Tobias Koppers c745597617 support for define([], obj), cs closure in r.e
fixes #371
fixes #407
2014-08-21 14:32:24 +02:00
Tobias Koppers d80cdcefac Code Quality 2014-06-24 18:53:32 +02:00
Tobias Koppers 6bdd8100eb fixes #202 2014-03-12 23:03:07 +01:00
Tobias Koppers 61f1c4d37d allow to configure default RegExps for automatically created contexts
allow to configure when an automatically created context is critical
better warning message in critical dependencies warning

fixes #196
fixes #198
2014-03-11 16:08:22 +01:00