2019-03-27 04:02:27 +00:00
|
|
|
// babel.config.js
|
|
|
|
module.exports = {
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'@babel/preset-env',
|
|
|
|
{
|
|
|
|
targets: {
|
|
|
|
node: 'current',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2022-05-10 13:52:06 +00:00
|
|
|
[
|
|
|
|
'@babel/typescript',
|
|
|
|
{
|
2023-11-24 14:45:55 +00:00
|
|
|
jsxPragma: 'h',
|
|
|
|
},
|
2022-05-10 13:52:06 +00:00
|
|
|
],
|
2019-03-27 04:02:27 +00:00
|
|
|
],
|
2022-05-10 13:52:06 +00:00
|
|
|
plugins: [
|
|
|
|
[
|
2023-11-24 14:45:55 +00:00
|
|
|
'@babel/plugin-transform-react-jsx',
|
|
|
|
{
|
2022-05-10 13:52:06 +00:00
|
|
|
pragma: 'h',
|
|
|
|
pragmaFrag: 'Fragment',
|
2023-11-24 14:45:55 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2019-03-27 04:02:27 +00:00
|
|
|
};
|