@embeddable.com/sdk-react 3.5.2 → 3.6.0-next.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/dynamicImportHandler.js +14 -0
- package/lib/index.esm.js +3 -10
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +3 -10
- package/lib/index.js.map +1 -1
- package/lib/plugin.d.ts +14 -0
- package/lib/proxyHandler.d.ts +4 -0
- package/lib/utils/modules.d.ts +10 -0
- package/lib/validate/errorFormatter.d.ts +3 -0
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -1058,7 +1058,7 @@ const usageValidator = async (directory) => {
|
|
|
1058
1058
|
};
|
|
1059
1059
|
|
|
1060
1060
|
const oraP = import('ora');
|
|
1061
|
-
const EMB_FILE_REGEX =
|
|
1061
|
+
const EMB_FILE_REGEX = /(DataGridWrapper)(?<!\.type|\.options)\.emb\.[jt]s$/;
|
|
1062
1062
|
var generate = async (ctx) => {
|
|
1063
1063
|
var _a;
|
|
1064
1064
|
const ora = (await oraP).default;
|
|
@@ -1107,14 +1107,7 @@ async function runViteBuild(ctx, watch = null) {
|
|
|
1107
1107
|
minify: !watch,
|
|
1108
1108
|
rollupOptions: watch
|
|
1109
1109
|
? {
|
|
1110
|
-
|
|
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
|
-
:
|
|
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"],
|