Skip to content

Commit

Permalink
fix babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
smouillour committed Oct 13, 2023
1 parent d25413f commit 18486f8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
23 changes: 0 additions & 23 deletions tools/scripts-config-babel/.babelrc.json

This file was deleted.

24 changes: 24 additions & 0 deletions tools/scripts-config-babel/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
presets: [
[
require.resolve('@babel/preset-env'),
{
targets:
'last 1 year, not ie > 0, not samsung > 0, not opera > 0, not ios > 0, not op_mob > 0, not android > 0, not and_chr > 0, not and_ff > 0, not and_qq > 0',
},
],
[require.resolve('@babel/preset-react'), { runtime: 'automatic' }],
[require.resolve('@babel/preset-typescript'), { allExtensions: true, isTSX: true }],
],
plugins: [
require.resolve('@talend/babel-plugin-import-from-index'),
require.resolve('@talend/babel-plugin-assets-api'),
require.resolve('@babel/plugin-proposal-nullish-coalescing-operator'),
require.resolve('@babel/plugin-proposal-class-properties'),
require.resolve('@babel/plugin-proposal-export-default-from'),
require.resolve('@babel/plugin-proposal-export-namespace-from'),
require.resolve('@babel/plugin-transform-object-assign'),
require.resolve('@babel/plugin-proposal-optional-chaining'),
['angularjs-annotate', { explicitOnly: true }],
],
};
2 changes: 1 addition & 1 deletion tools/scripts-config-babel/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./.babelrc.json');
module.exports = require('./babel.config');

0 comments on commit 18486f8

Please sign in to comment.