Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(es/module): Add a test for jsc.paths on windows #6915

Merged
merged 4 commits into from Feb 8, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 23 additions & 0 deletions crates/swc/tests/fixture/issues-5xxx/5165/1/input/.swcrc
@@ -0,0 +1,23 @@
{
"module": {
"type": "commonjs",
"strict": true,
"noInterop": true
},
"jsc": {
"target": "es2018",
"baseUrl": ".",
"paths": {
"@modules/import": [
"./src/import.ts"
]
},
"parser": {
"syntax": "typescript",
"decorators": true
},
"transform": {
"decoratorMetadata": true
}
}
}
@@ -0,0 +1,5 @@
const test = 'test';

export {
test
};
@@ -0,0 +1,3 @@
import { test } from '@modules/import';

console.log(test);
@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "test", {
enumerable: true,
get: ()=>test
});
const test = 'test';
@@ -0,0 +1,3 @@
"use strict";
const _import = require("./import");
console.log(_import.test);