@embeddable.com/sdk-react 3.5.2 → 3.6.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.esm.js CHANGED
@@ -1081,14 +1081,7 @@ async function runViteBuild(ctx, watch = null) {
1081
1081
  minify: !watch,
1082
1082
  rollupOptions: watch
1083
1083
  ? {
1084
- onLog(level, log, handler) {
1085
- if (log.cause &&
1086
- log.cause.message ===
1087
- `Can't resolve original location of error.`) {
1088
- return;
1089
- }
1090
- handler(level, log);
1091
- },
1084
+ ...ctx.client.rollupOptions,
1092
1085
  output: {
1093
1086
  sourcemapPathTransform: (relativeSourcePath, sourcemapPath) => {
1094
1087
  // will replace relative paths with absolute paths
@@ -1096,7 +1089,7 @@ async function runViteBuild(ctx, watch = null) {
1096
1089
  },
1097
1090
  },
1098
1091
  }
1099
- : undefined,
1092
+ : ctx.client.rollupOptions,
1100
1093
  lib: {
1101
1094
  entry: path.resolve(ctx.client.buildDir, ctx["sdk-react"].outputOptions.componentsEntryPointFilename),
1102
1095
  formats: ["es"],