@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.esm.js
CHANGED
|
@@ -1051,8 +1051,10 @@ var generate = async (ctx) => {
|
|
|
1051
1051
|
return result;
|
|
1052
1052
|
};
|
|
1053
1053
|
async function runViteBuild(ctx, watch = null) {
|
|
1054
|
+
var _a;
|
|
1054
1055
|
return await vite.build({
|
|
1055
1056
|
logLevel: !!watch ? "info" : "error",
|
|
1057
|
+
resolve: (_a = ctx.client.viteConfig) === null || _a === void 0 ? void 0 : _a.resolve,
|
|
1056
1058
|
plugins: [
|
|
1057
1059
|
viteReactPlugin(),
|
|
1058
1060
|
extractComponentsConfigPlugin({
|
|
@@ -1079,6 +1081,14 @@ async function runViteBuild(ctx, watch = null) {
|
|
|
1079
1081
|
minify: !watch,
|
|
1080
1082
|
rollupOptions: watch
|
|
1081
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
|
+
},
|
|
1082
1092
|
output: {
|
|
1083
1093
|
sourcemapPathTransform: (relativeSourcePath, sourcemapPath) => {
|
|
1084
1094
|
// will replace relative paths with absolute paths
|