@zessjs/compiler 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compiler.cjs +10 -0
- package/dist/compiler.js +10 -0
- package/package.json +1 -1
package/dist/compiler.cjs
CHANGED
|
@@ -536,6 +536,12 @@ function compile(code, options = {}) {
|
|
|
536
536
|
ThisExpression(node) {
|
|
537
537
|
if (JSXScope === currentContext.functionScope) this.replace(transformThisExpression(node));
|
|
538
538
|
},
|
|
539
|
+
ImportDeclaration() {
|
|
540
|
+
this.skip();
|
|
541
|
+
},
|
|
542
|
+
ExportAllDeclaration() {
|
|
543
|
+
this.skip();
|
|
544
|
+
},
|
|
539
545
|
exit(node) {
|
|
540
546
|
if (node === currentContext.functionScope) {
|
|
541
547
|
currentContext.functionScope = prevFunctionScope ?? ast;
|
|
@@ -1377,6 +1383,10 @@ function isDynamicExpression(node, checkTags) {
|
|
|
1377
1383
|
isDynamic = true;
|
|
1378
1384
|
this.break();
|
|
1379
1385
|
},
|
|
1386
|
+
TaggedTemplateExpression() {
|
|
1387
|
+
isDynamic = true;
|
|
1388
|
+
this.break();
|
|
1389
|
+
},
|
|
1380
1390
|
JSXElement() {
|
|
1381
1391
|
if (checkTags) {
|
|
1382
1392
|
isDynamic = true;
|
package/dist/compiler.js
CHANGED
|
@@ -508,6 +508,12 @@ function compile(code, options = {}) {
|
|
|
508
508
|
ThisExpression(node) {
|
|
509
509
|
if (JSXScope === currentContext.functionScope) this.replace(transformThisExpression(node));
|
|
510
510
|
},
|
|
511
|
+
ImportDeclaration() {
|
|
512
|
+
this.skip();
|
|
513
|
+
},
|
|
514
|
+
ExportAllDeclaration() {
|
|
515
|
+
this.skip();
|
|
516
|
+
},
|
|
511
517
|
exit(node) {
|
|
512
518
|
if (node === currentContext.functionScope) {
|
|
513
519
|
currentContext.functionScope = prevFunctionScope ?? ast;
|
|
@@ -1349,6 +1355,10 @@ function isDynamicExpression(node, checkTags) {
|
|
|
1349
1355
|
isDynamic = true;
|
|
1350
1356
|
this.break();
|
|
1351
1357
|
},
|
|
1358
|
+
TaggedTemplateExpression() {
|
|
1359
|
+
isDynamic = true;
|
|
1360
|
+
this.break();
|
|
1361
|
+
},
|
|
1352
1362
|
JSXElement() {
|
|
1353
1363
|
if (checkTags) {
|
|
1354
1364
|
isDynamic = true;
|