diff options
author | 2022-06-22 23:21:48 -0700 | |
---|---|---|
committer | 2022-06-22 23:21:48 -0700 | |
commit | 729d445b6885f69dd2c6355f38707bd42851c791 (patch) | |
tree | f87a7c408929ea3f57bbb7ace380cf869da83c0e /test/snippets/package-json-exports/index.js | |
parent | 25f820c6bf1d8ec6d444ef579cc036b8c0607b75 (diff) | |
download | bun-729d445b6885f69dd2c6355f38707bd42851c791.tar.gz bun-729d445b6885f69dd2c6355f38707bd42851c791.tar.zst bun-729d445b6885f69dd2c6355f38707bd42851c791.zip |
change the directory structurejarred/rename
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); +} |