mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
@@ -72,6 +72,7 @@ it("import.meta.resolve", async () => {
|
||||
|
||||
// works with tsconfig.json "paths"
|
||||
expect(await import.meta.resolve("foo/bar")).toBe(join(import.meta.path, "../baz.js"));
|
||||
expect(await import.meta.resolve("@faasjs/baz")).toBe(join(import.meta.path, "../baz.js"));
|
||||
|
||||
// works with package.json "exports"
|
||||
writePackageJSONExportsFixture();
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"paths": {
|
||||
"foo/bar": ["baz.js"]
|
||||
"foo/bar": ["baz.js"],
|
||||
"@faasjs/*": ["*.js"]
|
||||
},
|
||||
"baseUrl": "."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user