Skip to content

Commit

Permalink
Fix NPM package on Node12
Browse files Browse the repository at this point in the history
  • Loading branch information
chentsulin committed Nov 24, 2021
1 parent 7e51554 commit d61d1ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
module.exports = {
presets: [['@babel/preset-env', { targets: { node: 'current' } }]],
presets: [['@babel/preset-env', { targets: { node: '12' } }]],
plugins: [
'./resources/load-staticly-from-npm.js',
'@babel/plugin-transform-flow-strip-types',
],
overrides: [
{
include: ['**/__tests__/**/*'],
presets: [['@babel/preset-env', { targets: { node: 'current' } }]],
},
],
};

0 comments on commit d61d1ff

Please sign in to comment.