Closed isaac-martin closed 5 years ago
Worth noting my '.babelrc` file looks like this, I have react running inside a particular page.
{
"presets": ["@babel/preset-react"],
"plugins": [["transform-async-to-generator"], ["@babel/plugin-syntax-object-rest-spread"], ["@babel/plugin-proposal-class-properties"]]
}
Can't find anything in the documentation, but does having a '.babelrc' overwrite any slate configs?
Looks like it was an issue with my config setup. Changed my .babelrc
to be the following for anyone that comes across this.
{
"presets": [
"@babel/preset-react",
[
"@babel/preset-env",
{
"targets": "> 0.25%, not dead"
}
]
],
"plugins": [["transform-async-to-generator"], ["@babel/plugin-syntax-object-rest-spread"], ["@babel/plugin-proposal-class-properties"]]
}
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Problem
Code appears to not be compiling to IE / Edge (ES5). Am getting error SCRIPT1028 in console.
Have defined
"browserslist": "> 0.25%"
inpackage.json
and when runningnpx browserslist
get the below output.Not sure if something in my configs have changed?