@embeddable.com/sdk-react 3.1.1 → 3.2.0-next.10
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 +3 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/lib/index.esm.js
CHANGED
|
@@ -6,6 +6,7 @@ import * as vite from 'vite';
|
|
|
6
6
|
import viteReactPlugin from '@vitejs/plugin-react';
|
|
7
7
|
import * as fs from 'node:fs/promises';
|
|
8
8
|
import { readdir, lstat, rm } from 'node:fs/promises';
|
|
9
|
+
import * as url from 'node:url';
|
|
9
10
|
import 'node:child_process';
|
|
10
11
|
import { z } from 'zod';
|
|
11
12
|
import { parse } from '@babel/parser';
|
|
@@ -25,7 +26,7 @@ var createContext = (pluginRoot, coreCtx) => {
|
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
const loadComponentMeta = async (moduleId) => {
|
|
28
|
-
const module = await import(moduleId);
|
|
29
|
+
const module = await import(url.pathToFileURL(moduleId).href);
|
|
29
30
|
return module.meta;
|
|
30
31
|
};
|
|
31
32
|
|
|
@@ -1121,7 +1122,7 @@ async function prepareEntrypoint(ctx, filesList) {
|
|
|
1121
1122
|
|
|
1122
1123
|
var build = async (ctx) => {
|
|
1123
1124
|
createContext(path$1.resolve(__dirname, ".."), ctx);
|
|
1124
|
-
return
|
|
1125
|
+
return generate(ctx);
|
|
1125
1126
|
};
|
|
1126
1127
|
|
|
1127
1128
|
var cleanup = async (ctx) => {
|