Skip to content

Commit

Permalink
Fix: Include class-properties plugin for Node projects 🎊 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
DHedgecock committed May 3, 2020
1 parent f533b28 commit c73fb62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/__snapshots__/index.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Object {
"@babel/plugin-transform-runtime",
Object {
"useESModules": false,
"version": "7.9.2",
"version": "7.9.6",
},
],
Array [
Expand All @@ -18,6 +18,7 @@ Object {
},
},
],
"@babel/plugin-proposal-class-properties",
],
"presets": Array [
Array [
Expand Down Expand Up @@ -49,7 +50,7 @@ Object {
"@babel/plugin-transform-runtime",
Object {
"useESModules": true,
"version": "7.9.2",
"version": "7.9.6",
},
],
Array [
Expand Down Expand Up @@ -100,7 +101,7 @@ Object {
"@babel/plugin-transform-runtime",
Object {
"useESModules": true,
"version": "7.9.2",
"version": "7.9.6",
},
],
Array [
Expand Down Expand Up @@ -151,7 +152,7 @@ Object {
"@babel/plugin-transform-runtime",
Object {
"useESModules": false,
"version": "7.9.2",
"version": "7.9.6",
},
],
Array [
Expand Down
3 changes: 3 additions & 0 deletions src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export default function nodeConfigs() {
'babel-plugin-transform-import-aliases',
{ aliases: { '@': path.resolve(fs.realpathSync(process.cwd()), 'src') } },
],

// --- Additional stage-3 proposals not present in preset-env set
'@babel/plugin-proposal-class-properties',
],
}
}

0 comments on commit c73fb62

Please sign in to comment.