@embeddable.com/sdk-core 3.2.0-next.5 → 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.
@@ -62,9 +62,10 @@ export const resolve = async (specifier, context, nextResolve) => {
62
62
  }
63
63
 
64
64
  const isFileUrl = specifier.startsWith("file://");
65
+ const isParentFileUrl = context.parentURL.startsWith("file://");
65
66
  const { resolvedModule } = ts.resolveModuleName(
66
67
  isFileUrl ? fileURLToPath(specifier) : specifier,
67
- fileURLToPath(context.parentURL),
68
+ isParentFileUrl ? fileURLToPath(context.parentURL) : context.parentURL,
68
69
  tsconfig,
69
70
  host,
70
71
  moduleResolutionCache,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "3.2.0-next.5",
3
+ "version": "3.2.0-next.6",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -12,9 +12,12 @@ export default async () => {
12
12
  process.exit(1);
13
13
  }
14
14
 
15
+ const isWindows = process.platform === "win32";
15
16
  const configPath = fs.existsSync(tsConfigFilePath)
16
17
  ? tsConfigFilePath
17
18
  : configFilePath;
18
19
 
19
- return (await import(url.pathToFileURL(configPath).href)).default;
20
+ const pathOrUrl = isWindows ? url.pathToFileURL(configPath).href : configPath;
21
+
22
+ return (await import(pathOrUrl)).default;
20
23
  };