We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsconfig.json > target: "es5"
// webpack.confg.js snippet: rules: [ { test: /\.tsx?$/, exclude: /node_modules/, use: [ { loader: "babel-loader", options: { presets: ["@babel/preset-react"], plugins: [ "transform-react-pug", // "@babel/transform-react-jsx" ] } }, { loader: 'ts-loader' } ] } ]
With target: "es6" it works whether "@babel/transform-react-jsx" plugin is used or not.
target: "es6"
"@babel/transform-react-jsx"
// tsconfig.json { "compilerOptions": { "jsx": "preserve", // works whether `preserve` or `react` "target": "es5", // es5 doesn't work "strict": true, "module": "es2015", "moduleResolution": "node", "esModuleInterop": true, "allowSyntheticDefaultImports": true, "sourceMap": true, "allowJs": true, "baseUrl": ".", "paths": { "~/*": ["./*"] }, }, "exclude": ["./node_modules"] }
Is this an issue with babel or this plugin?
Document this maybe?
If there is a workaround, I would love to know. Spent some time trying to fix this one character issue of changing 5 to 6...
5
6
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With
target: "es6"
it works whether"@babel/transform-react-jsx"
plugin is used or not.Is this an issue with babel or this plugin?
Document this maybe?
If there is a workaround, I would love to know. Spent some time trying to fix this one character issue of changing
5
to6
...The text was updated successfully, but these errors were encountered: