Skip to content

Instantly share code, notes, and snippets.

@ragingwind
Created Nov 2, 2021
Embed
What would you like to do?
swcrc
{
"jsc": {
"parser": {
"syntax": "ecmascript",
"jsx": false,
"dynamicImport": false,
"privateMethod": false,
"functionBind": false,
"classPrivateProperty": false,
"exportDefaultFrom": false,
"exportNamespaceFrom": false,
"decorators": false,
"decoratorsBeforeExport": false,
"importMeta": false
},
"target": "es2016",
"loose": true,
"transform": {
"react": {
"pragma": "React.createElement",
"pragmaFrag": "React.Fragment",
"throwIfNamespace": true,
"development": false,
"useBuiltins": false
}
},
"minify": {
"compress": true
}
},
"module": {
"type": "commonjs",
"ignoreDynamic": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment