Skip to content

Commit

Permalink
Merge pull request #1 from DVGY/feature/add-babel-null-coaelseing
Browse files Browse the repository at this point in the history
add babel plugin for coaelsce symbol
  • Loading branch information
DVGY authored Mar 23, 2022
2 parents ca1e765 + 8f27b13 commit 205437b
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
const targets = {
node: 'current',
node: "current",
browsers: [
'last 2 Chrome versions',
'last 2 Edge versions',
'last 2 Firefox versions',
'last 2 iOS versions',
'last 2 Opera versions',
'last 2 Safari versions',
'last 2 Samsung versions',
"last 2 Chrome versions",
"last 2 Edge versions",
"last 2 Firefox versions",
"last 2 iOS versions",
"last 2 Opera versions",
"last 2 Safari versions",
"last 2 Samsung versions",
],
}
};

module.exports = {
presets: ['@babel/preset-react', '@babel/preset-typescript'],
presets: ["@babel/preset-react", "@babel/preset-typescript"],
env: {
development: {
presets: [
[
'@babel/preset-env',
"@babel/preset-env",
{
loose: true,
modules: 'commonjs',
modules: "commonjs",
targets,
},
],
],
plugins: ["@babel/plugin-proposal-nullish-coalescing-operator"],
},
rollup: {
presets: [
[
'@babel/preset-env',
"@babel/preset-env",
{
loose: true,
modules: false,
Expand All @@ -41,14 +42,15 @@ module.exports = {
esm: {
presets: [
[
'@babel/preset-env',
"@babel/preset-env",
{
loose: true,
modules: false,
targets,
},
],
],
plugins: ["@babel/plugin-proposal-nullish-coalescing-operator"],
},
},
}
};

0 comments on commit 205437b

Please sign in to comment.