@embeddable.com/sdk-react 3.1.1 → 3.2.0-next.4

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/build.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: (ctx: any) => Promise<import("rollup").RollupOutput | import("rollup").RollupOutput[] | import("rollup").RollupWatcher>;
1
+ declare const _default: (ctx: any) => Promise<void>;
2
2
  export default _default;
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  declare const _default: () => {
2
2
  pluginName: string;
3
3
  validate: () => Promise<void>;
4
- build: (ctx: any) => Promise<import("rollup").RollupOutput | import("rollup").RollupOutput[] | import("rollup").RollupWatcher>;
4
+ build: (ctx: any) => Promise<void>;
5
5
  cleanup: (ctx: any) => Promise<void>;
6
6
  };
7
7
  export default _default;
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 await generate(ctx);
1125
+ await generate(ctx);
1125
1126
  };
1126
1127
 
1127
1128
  var cleanup = async (ctx) => {