Skip to content

Commit

Permalink
set privateFieldsAsProperties in babel
Browse files Browse the repository at this point in the history
  • Loading branch information
aepyornis committed Sep 9, 2021
1 parent db610fe commit 4ace779
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions babel.config.js
Expand Up @@ -16,6 +16,9 @@ module.exports = function(api) {
}

return {
assumptions: {
"privateFieldsAsProperties": true
},
presets: [
isTestEnv && [
require('@babel/preset-env').default,
Expand Down Expand Up @@ -48,12 +51,7 @@ module.exports = function(api) {
require('@babel/plugin-syntax-dynamic-import').default,
isTestEnv && require('babel-plugin-dynamic-import-node'),
require('@babel/plugin-transform-destructuring').default,
[
require('@babel/plugin-proposal-class-properties').default,
{
loose: true
}
],
require('@babel/plugin-proposal-class-properties').default,
[
require('@babel/plugin-proposal-object-rest-spread').default,
{
Expand Down

0 comments on commit 4ace779

Please sign in to comment.