@mbler/mcx-core 0.1.1-beta.r1 → 0.1.1-beta.r2

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 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,
@@ -12194,7 +12196,9 @@ function createMcxPlugin(opt, output) {
12194
12196
  line: error.loc.line,
12195
12197
  });
12196
12198
  }
12197
- this.error(String(err));
12199
+ this.error(err instanceof Error
12200
+ ? `${err.message} : ${err.stack}`
12201
+ : String(err));
12198
12202
  return;
12199
12203
  }
12200
12204
  compileData.setFilePath(id);