Path aliases doesn't work
johnny-fuse opened this issue · 1 comments
johnny-fuse commented
Having my .swcrc file written as follows:
{
"$schema": "https://json.schemastore.org/swcrc",
"sourceMaps": true,
"module": {
"type": "commonjs"
},
"jsc": {
"target": "es2017",
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
},
"keepClassNames": true,
"baseUrl": "./src",
"paths": {
"shared/*": ["../../../shared/*"]
},
},
"minify": false
}
And my tsconfig.json written as follows:
{
"compilerOptions": {
"outDir": "dist",
"baseUrl": "src",
"paths": {
"shared/*": ["../../../shared/*"]
},
"sourceMap": true,
"inlineSources": true,
"target": "ES6"
},
"noImplicitAny": false,
"strictNullChecks": false,
"extends": "../../tsconfig.json"
}
When using tsc I'm receiving the right bundle with the shared directory bundled in the dist, but when using the swc build the dist directory doesn't contain the shared folder at all
kdy1 commented
Please left an issue on the main swc repository