Skip to content
Snippets Groups Projects
Unverified Commit 3c4deb1a authored by Tiago Evangelista Pinto's avatar Tiago Evangelista Pinto Committed by GitHub
Browse files

Chore: Fix babel config related to TypeScript `declare` usage (#28029)

parent 65565a22
No related branches found
No related tags found
No related merge requests found
......@@ -7,15 +7,15 @@ module.exports = {
useBuiltIns: 'usage',
corejs: '3',
modules: 'commonjs',
include: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
],
},
],
'@babel/preset-react',
'@babel/preset-flow',
'@babel/preset-typescript',
],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
['@babel/preset-typescript', { allowDeclareFields: true }],
],
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment