@embeddable.com/sdk-react 3.7.0-next.0 → 3.7.0

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/lib/index.js CHANGED
@@ -411,19 +411,13 @@ var extractComponentsConfigPlugin = ({ globalKey, outputDir, fileName, component
411
411
  var _a;
412
412
  if (componentFileRegex.test(moduleInfo.id) &&
413
413
  ((_a = moduleInfo.code) === null || _a === void 0 ? void 0 : _a.includes(searchEntry))) {
414
- try {
415
- const meta = await loadComponentMeta(moduleInfo.id);
416
- const configJSON = JSON.stringify(meta, (_key, value) => typeof value === "object" &&
417
- value !== null &&
418
- "__embeddableType" in value
419
- ? value.toString()
420
- : value);
421
- configs.push(configJSON);
422
- }
423
- catch (error) {
424
- console.log("Error parsing component meta: ", moduleInfo.id);
425
- console.error(error);
426
- }
414
+ const meta = await loadComponentMeta(moduleInfo.id);
415
+ const configJSON = JSON.stringify(meta, (_key, value) => typeof value === "object" &&
416
+ value !== null &&
417
+ "__embeddableType" in value
418
+ ? value.toString()
419
+ : value);
420
+ configs.push(configJSON);
427
421
  }
428
422
  },
429
423
  buildEnd: async () => {
@@ -1086,10 +1080,7 @@ async function runViteBuild(ctx, watch = null) {
1086
1080
  var _a;
1087
1081
  return await vite__namespace.build({
1088
1082
  logLevel: !!watch ? "info" : "error",
1089
- resolve: {
1090
- extensions: [".ts", ".tsx", ".js", ".jsx", ".json"],
1091
- ...(_a = ctx.client.viteConfig) === null || _a === void 0 ? void 0 : _a.resolve,
1092
- },
1083
+ resolve: (_a = ctx.client.viteConfig) === null || _a === void 0 ? void 0 : _a.resolve,
1093
1084
  plugins: [
1094
1085
  viteReactPlugin(),
1095
1086
  extractComponentsConfigPlugin({
@@ -1112,16 +1103,10 @@ async function runViteBuild(ctx, watch = null) {
1112
1103
  ],
1113
1104
  build: {
1114
1105
  sourcemap: true,
1115
- watch: watch
1116
- ? {
1117
- include: [ctx.client.srcDir + "/**"],
1118
- exclude: ["**/node_modules/**"],
1119
- }
1120
- : undefined,
1106
+ watch,
1121
1107
  minify: !watch,
1122
1108
  rollupOptions: watch
1123
1109
  ? {
1124
- cache: true,
1125
1110
  ...ctx.client.rollupOptions,
1126
1111
  output: {
1127
1112
  sourcemapPathTransform: (relativeSourcePath, sourcemapPath) => {