@idomatic/core 1.0.3 → 1.0.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/core.js +3 -0
- package/package.json +1 -1
package/lib/core.js
CHANGED
|
@@ -24,7 +24,10 @@ export async function processFile(filePath, config) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
try {
|
|
27
|
+
// This will now resolve correctly using the exports field in parser-js
|
|
28
|
+
console.log(parserPackage);
|
|
27
29
|
const resolvedPath = requireFromProject.resolve(parserPackage);
|
|
30
|
+
console.log(resolvedPath);
|
|
28
31
|
const resolvedURL = pathToFileURL(resolvedPath).href;
|
|
29
32
|
const parser = await import(resolvedURL);
|
|
30
33
|
await parser.default(filePath, config);
|