@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.js CHANGED
@@ -1107,14 +1107,7 @@ async function runViteBuild(ctx, watch = null) {
1107
1107
  minify: !watch,
1108
1108
  rollupOptions: watch
1109
1109
  ? {
1110
- onLog(level, log, handler) {
1111
- if (log.cause &&
1112
- log.cause.message ===
1113
- `Can't resolve original location of error.`) {
1114
- return;
1115
- }
1116
- handler(level, log);
1117
- },
1110
+ ...ctx.client.rollupOptions,
1118
1111
  output: {
1119
1112
  sourcemapPathTransform: (relativeSourcePath, sourcemapPath) => {
1120
1113
  // will replace relative paths with absolute paths
@@ -1122,7 +1115,7 @@ async function runViteBuild(ctx, watch = null) {
1122
1115
  },
1123
1116
  },
1124
1117
  }
1125
- : undefined,
1118
+ : ctx.client.rollupOptions,
1126
1119
  lib: {
1127
1120
  entry: path__namespace.resolve(ctx.client.buildDir, ctx["sdk-react"].outputOptions.componentsEntryPointFilename),
1128
1121
  formats: ["es"],