@embeddable.com/sdk-core 3.2.0-next.4 → 3.2.0-next.6

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 CHANGED
@@ -8,6 +8,7 @@ import * as fs$2 from 'node:fs';
8
8
  import { createNodeLogger, createNodeSys } from '@stencil/core/sys/node';
9
9
  import { loadConfig, createCompiler } from '@stencil/core/compiler';
10
10
  import * as YAML from 'yaml';
11
+ import * as url$2 from 'node:url';
11
12
  import * as path$2 from 'path';
12
13
  import path__default, { basename } from 'path';
13
14
  import require$$4$1 from 'util';
@@ -4630,10 +4631,12 @@ var provideConfig = async () => {
4630
4631
  console.log("Please create a proper `embeddable.config.js` or `embeddable.config.ts` file in the root of your project.");
4631
4632
  process.exit(1);
4632
4633
  }
4634
+ const isWindows = process.platform === "win32";
4633
4635
  const configPath = fs$2.existsSync(tsConfigFilePath)
4634
4636
  ? tsConfigFilePath
4635
4637
  : configFilePath;
4636
- return (await import(configPath)).default;
4638
+ const pathOrUrl = isWindows ? url$2.pathToFileURL(configPath).href : configPath;
4639
+ return (await import(pathOrUrl)).default;
4637
4640
  };
4638
4641
 
4639
4642
  function getDefaultExportFromCjs (x) {