helper-module-transforms: dereference imported template tag (#10934)
* Dereference imported template tag * apply fix for OptionalCallExpression as well
This commit is contained in:
committed by
Huáng Jùnliàng
parent
e9dc74e787
commit
b91720c1cc
@@ -7,3 +7,5 @@ foo;
|
||||
foo2;
|
||||
foo3;
|
||||
foo3();
|
||||
foo3``;
|
||||
foo3?.();
|
||||
|
||||
@@ -5,3 +5,5 @@ foo4.default;
|
||||
foo4.default;
|
||||
foo4.foo3;
|
||||
(0, foo4.foo3)();
|
||||
(0, foo4.foo3)``;
|
||||
(0, foo4.foo3)?.();
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"plugins": [
|
||||
"external-helpers",
|
||||
"syntax-object-rest-spread",
|
||||
"syntax-optional-chaining",
|
||||
[
|
||||
"transform-modules-commonjs",
|
||||
{ "strict": true, "mjsStrictNamespace": false }
|
||||
|
||||
Reference in New Issue
Block a user