@meituan-nocode/vite-plugin-nocode-compiler 0.1.0-beta.1 → 0.1.0-beta.2
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.
|
@@ -77,8 +77,7 @@ class JSXCompiler {
|
|
|
77
77
|
let changedElementsCount = 0;
|
|
78
78
|
let currentElement = null;
|
|
79
79
|
let arrayContext = null;
|
|
80
|
-
const
|
|
81
|
-
const walk = estreeWalker.walk || estreeWalker.default?.walk || estreeWalker.default;
|
|
80
|
+
const { walk } = await Promise.resolve().then(() => __importStar(require('estree-walker')));
|
|
82
81
|
walk(ast, {
|
|
83
82
|
enter: (node) => {
|
|
84
83
|
// 检测数组的 map 调用
|
|
@@ -150,7 +149,7 @@ class JSXCompiler {
|
|
|
150
149
|
}
|
|
151
150
|
catch (error) {
|
|
152
151
|
this.logger.error('Error processing file:', relativePath);
|
|
153
|
-
this.logger.error(error);
|
|
152
|
+
this.logger.error('Error', error);
|
|
154
153
|
return null;
|
|
155
154
|
}
|
|
156
155
|
}
|