@embeddable.com/sdk-react 3.5.0 → 3.5.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 +10 -0
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1077,8 +1077,10 @@ var generate = async (ctx) => {
|
|
|
1077
1077
|
return result;
|
|
1078
1078
|
};
|
|
1079
1079
|
async function runViteBuild(ctx, watch = null) {
|
|
1080
|
+
var _a;
|
|
1080
1081
|
return await vite__namespace.build({
|
|
1081
1082
|
logLevel: !!watch ? "info" : "error",
|
|
1083
|
+
resolve: (_a = ctx.client.viteConfig) === null || _a === void 0 ? void 0 : _a.resolve,
|
|
1082
1084
|
plugins: [
|
|
1083
1085
|
viteReactPlugin(),
|
|
1084
1086
|
extractComponentsConfigPlugin({
|
|
@@ -1105,6 +1107,14 @@ async function runViteBuild(ctx, watch = null) {
|
|
|
1105
1107
|
minify: !watch,
|
|
1106
1108
|
rollupOptions: watch
|
|
1107
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
|
+
},
|
|
1108
1118
|
output: {
|
|
1109
1119
|
sourcemapPathTransform: (relativeSourcePath, sourcemapPath) => {
|
|
1110
1120
|
// will replace relative paths with absolute paths
|