mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
test(es/modules): Add a test for a fixed issue (#3586)
This commit is contained in:
parent
d4cac369b0
commit
038e7f8669
18
crates/swc/tests/fixture/issue-3547/1/input/.swcrc
Normal file
18
crates/swc/tests/fixture/issue-3547/1/input/.swcrc
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"jsc": {
|
||||
"parser": {
|
||||
"syntax": "typescript",
|
||||
"decorators": true
|
||||
},
|
||||
"target": "es2020",
|
||||
"paths": {
|
||||
"#lib/*": [
|
||||
"lib/*"
|
||||
]
|
||||
},
|
||||
"baseUrl": "./src"
|
||||
},
|
||||
"module": {
|
||||
"type": "es6"
|
||||
}
|
||||
}
|
3
crates/swc/tests/fixture/issue-3547/1/input/index.js
Normal file
3
crates/swc/tests/fixture/issue-3547/1/input/index.js
Normal file
@ -0,0 +1,3 @@
|
||||
import { NekoRoute } from '#lib/structures/route'
|
||||
|
||||
console.log(NekoRoute)
|
@ -0,0 +1 @@
|
||||
console.log('foo')
|
2
crates/swc/tests/fixture/issue-3547/1/output/index.js
Normal file
2
crates/swc/tests/fixture/issue-3547/1/output/index.js
Normal file
@ -0,0 +1,2 @@
|
||||
import { NekoRoute } from "./src/lib/structures/route";
|
||||
console.log(NekoRoute);
|
@ -0,0 +1 @@
|
||||
console.log('foo');
|
Loading…
Reference in New Issue
Block a user