@embeddable.com/sdk-react 3.2.1 → 3.2.2

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
@@ -1101,6 +1101,16 @@ async function runViteBuild(ctx, watch = null) {
1101
1101
  sourcemap: true,
1102
1102
  watch,
1103
1103
  minify: !watch,
1104
+ rollupOptions: watch
1105
+ ? {
1106
+ output: {
1107
+ sourcemapPathTransform: (relativeSourcePath, sourcemapPath) => {
1108
+ // will replace relative paths with absolute paths
1109
+ return path.resolve(path.dirname(sourcemapPath), relativeSourcePath);
1110
+ },
1111
+ },
1112
+ }
1113
+ : undefined,
1104
1114
  lib: {
1105
1115
  entry: path.resolve(ctx.client.rootDir, ctx["sdk-react"].outputOptions.componentsEntryPointFilename),
1106
1116
  formats: ["es"],