DEV Community

Discussion on: Creating a express app with typescript and swc

Collapse
 
otumianempire profile image
Michael Otu • Edited

this is what worked for me.... Typeorm, decorators, typescript... this is just for development....

{
    "$schema": "https://json.schemastore.org/swcrc",
    "jsc": {
        "parser": {
            "syntax": "typescript",
            "tsx": false,
            "dynamicImport": true,
            "decorators": true
        },
        "transform": {
            "decoratorMetadata": true
        },
        "target": "es2016",
        "loose": false,
        "externalHelpers": false,
        "keepClassNames": false
    },
    "module": {
        "type": "commonjs",
        "strict": false,
        "strictMode": false,
        "noInterop": false,
        "lazy": false
    },
    "minify": true
}
Enter fullscreen mode Exit fullscreen mode