@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.js CHANGED
@@ -6,7 +6,6 @@ var path$1 = require('path');
6
6
  var vite = require('vite');
7
7
  var viteReactPlugin = require('@vitejs/plugin-react');
8
8
  var fs = require('node:fs/promises');
9
- var url = require('node:url');
10
9
  require('node:child_process');
11
10
  var zod = require('zod');
12
11
  var parser = require('@babel/parser');
@@ -35,7 +34,6 @@ var fs__namespace$2 = /*#__PURE__*/_interopNamespaceDefault(fs$2);
35
34
  var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path$1);
36
35
  var vite__namespace = /*#__PURE__*/_interopNamespaceDefault(vite);
37
36
  var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
38
- var url__namespace = /*#__PURE__*/_interopNamespaceDefault(url);
39
37
  var fs__namespace$1 = /*#__PURE__*/_interopNamespaceDefault(fs$1);
40
38
 
41
39
  var createContext = (pluginRoot, coreCtx) => {
@@ -51,7 +49,7 @@ var createContext = (pluginRoot, coreCtx) => {
51
49
  };
52
50
 
53
51
  const loadComponentMeta = async (moduleId) => {
54
- const module = await import(url__namespace.pathToFileURL(moduleId).href);
52
+ const module = await import(moduleId);
55
53
  return module.meta;
56
54
  };
57
55
 
@@ -1147,7 +1145,7 @@ async function prepareEntrypoint(ctx, filesList) {
1147
1145
 
1148
1146
  var build = async (ctx) => {
1149
1147
  createContext(path__namespace$1.resolve(__dirname, ".."), ctx);
1150
- return await generate(ctx);
1148
+ return generate(ctx);
1151
1149
  };
1152
1150
 
1153
1151
  var cleanup = async (ctx) => {