@mbler/mcx-core 0.1.1-beta.r1 → 0.1.1-beta.r3
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/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1178,6 +1178,8 @@ const compileMCXFn = ((mcxCode) => {
|
|
|
1178
1178
|
compileMCXFn.cache[mcxCode] = data;
|
|
1179
1179
|
return data;
|
|
1180
1180
|
});
|
|
1181
|
+
compileJSFn.cache = {};
|
|
1182
|
+
compileMCXFn.cache = {};
|
|
1181
1183
|
|
|
1182
1184
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
1183
1185
|
__proto__: null,
|
|
@@ -11902,7 +11904,7 @@ async function compileComponent(compiledCode, ctx) {
|
|
|
11902
11904
|
const json = pointData.toJSON();
|
|
11903
11905
|
if (!json._meta ||
|
|
11904
11906
|
!json._meta.type ||
|
|
11905
|
-
|
|
11907
|
+
!['item', 'entity'].includes(json._meta.type))
|
|
11906
11908
|
throw new Error('[mcx component]: not mcx json component: unkown type');
|
|
11907
11909
|
if (json._meta.file_edit)
|
|
11908
11910
|
await execEdit(json._meta.file_edit, ctx);
|
|
@@ -12194,7 +12196,9 @@ function createMcxPlugin(opt, output) {
|
|
|
12194
12196
|
line: error.loc.line,
|
|
12195
12197
|
});
|
|
12196
12198
|
}
|
|
12197
|
-
this.error(
|
|
12199
|
+
this.error(err instanceof Error
|
|
12200
|
+
? `${err.message} : ${err.stack}`
|
|
12201
|
+
: String(err));
|
|
12198
12202
|
return;
|
|
12199
12203
|
}
|
|
12200
12204
|
compileData.setFilePath(id);
|