diff options
Diffstat (limited to 'test/snippets/package-json-exports/index.js')
-rw-r--r-- | test/snippets/package-json-exports/index.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/snippets/package-json-exports/index.js b/test/snippets/package-json-exports/index.js new file mode 100644 index 000000000..d1946c53f --- /dev/null +++ b/test/snippets/package-json-exports/index.js @@ -0,0 +1,12 @@ +import * as InexactRoot from "inexact"; +import * as InexactFile from "inexact/file"; +import * as ExactFile from "inexact/foo"; +import * as JSFileExtensionOnly from "js-only-exports/js-file"; + +export async function test() { + console.assert(InexactRoot.target === "browser"); + console.assert(InexactFile.target === "browser"); + console.assert(ExactFile.target === "browser"); + console.assert(JSFileExtensionOnly.isJS === true); + return testDone(import.meta.url); +} |