@embeddable.com/sdk-react 3.1.3 → 3.1.5

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
@@ -7,6 +7,7 @@ var vite = require('vite');
7
7
  var viteReactPlugin = require('@vitejs/plugin-react');
8
8
  var fs = require('node:fs/promises');
9
9
  var url = require('node:url');
10
+ var globalRegistrator = require('@happy-dom/global-registrator');
10
11
  require('node:child_process');
11
12
  var zod = require('zod');
12
13
  var parser = require('@babel/parser');
@@ -50,6 +51,11 @@ var createContext = (pluginRoot, coreCtx) => {
50
51
  };
51
52
  };
52
53
 
54
+ globalRegistrator.GlobalRegistrator.register({
55
+ url: "http://localhost:3000",
56
+ width: 1920,
57
+ height: 1080,
58
+ });
53
59
  const loadComponentMeta = async (moduleId) => {
54
60
  const module = await import(url__namespace.pathToFileURL(moduleId).href);
55
61
  return module.meta;