Tobias Koppers
962199c288
nitpicks
2020-09-01 11:15:52 +02:00
Ivan Kopeykin
35c56e67ae
refactor how asi handled
...
- add asiSafeExpression helper for JavascriptParser
- use asiSafe flag in DefinePlugin
- try to use (...) instead of Object()
2020-08-28 19:46:56 +03:00
Tobias Koppers
e23bc8ca7c
use expression hook for metaProperty
...
a MetaProperty is an Expression
it's more consistent
2020-08-27 13:03:56 +02:00
Tobias Koppers
d0865437ce
use `Object()` to avoid problems with ASI
2020-08-27 13:00:19 +02:00
Ivan Kopeykin
282e8d6074
fix ImportMetaPlugin
2020-08-27 12:59:29 +02:00
Ivan Kopeykin
1556341c13
fix #11310
2020-08-27 12:59:28 +02:00
Tobias Koppers
85edc5c7fa
improve code design of ImportMetaPlugin
...
add missing evaluation for compare operations
refactor duplicate code
add unhandledExpressionMemberChain hook to parser
add evaluateToNumber and types to JavascriptParserHelpers
add undefined to BasicEvaluatedExpression
add import.meta.webpack as webpack major version
2020-07-06 17:13:09 +02:00
Ivan Kopeykin
7b2a267155
fix types
2020-06-26 15:04:18 +03:00
Ivan Kopeykin
83f2745737
use url.pathToFileURL
2020-06-26 00:37:40 +03:00
Ivan Kopeykin
4b2a4e8272
correct file url for Windows
2020-06-25 00:15:54 +03:00
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