I've tried everything i could find so far and i'm still getting the error "exports is not defined".
I am using ReactJS.NET (for NetCore2) and it is mandatory otherwise my entire app will not load under NetCore2.
This is my .babelrc
{
"presets": [
"@babel/preset-react",
"@babel/preset-env",
"@babel/preset-typescript"
],
"plugins": [
"add-module-exports",
"@babel/plugin-proposal-class-properties",
[
"@babel/plugin-transform-runtime",
{
"corejs": 2,
"helpers": true,
"regenerator": true,
"useESModules": true
}
]
]
}
Everything worked fine with the older babel and "add-module-exports". Is there an alternative for babel 7?