@isograph/babel-plugin 0.0.0-main-35c553b5 → 0.0.0-main-8c78c7e8
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/README.md +1 -1
- package/compileTag.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -20,7 +20,7 @@ module.exports = {
|
|
20
20
|
|
21
21
|
## What does it do?
|
22
22
|
|
23
|
-
This package changes calls to `iso` entrypoint to `require` calls for the generated artifact. For example, `` iso`entrypoint Query.HomePage` `` might get replaced with `require("../__isograph/Query/HomePage/entrypoint.
|
23
|
+
This package changes calls to `iso` entrypoint to `require` calls for the generated artifact. For example, `` iso`entrypoint Query.HomePage` `` might get replaced with `require("../__isograph/Query/HomePage/entrypoint.ts")`.
|
24
24
|
|
25
25
|
## Requirements
|
26
26
|
|
package/compileTag.js
CHANGED
@@ -58,7 +58,7 @@ function compileImportStatement(t, path, type, field, artifactType, config) {
|
|
58
58
|
const artifactDirectory = pathModule.join(cwd, config.artifact_directory);
|
59
59
|
|
60
60
|
const fileToArtifactDir = pathModule.relative(folder, artifactDirectory);
|
61
|
-
const artifactDirToArtifact = `/__isograph/${type}/${field}/${artifactType}.
|
61
|
+
const artifactDirToArtifact = `/__isograph/${type}/${field}/${artifactType}.ts`;
|
62
62
|
const fileToArtifact = pathModule.join(
|
63
63
|
fileToArtifactDir,
|
64
64
|
artifactDirToArtifact,
|