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