Skip to content

Commit

Permalink
[BE] CHORE: babel build 설정 & script 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
pjy0416 committed Dec 9, 2020
1 parent dfbd0cc commit 69d6619
Show file tree
Hide file tree
Showing 4 changed files with 308 additions and 55 deletions.
17 changes: 17 additions & 0 deletions server/.babelrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
const plugins = [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
[
'module-resolver',
{
alias: {
'@root': './src',
'@test': './test',
'@config': './src/config',
'@models': './src/models',
'@loaders': './src/loaders',
'@utils': './src/utils',
'@routes': './src/routes',
'@passport': './src/passport',
'@services': './src/services',
'@controllers': './src/controllers',
},
},
],
];

module.exports = { plugins };
1 change: 0 additions & 1 deletion server/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
"compilerOptions": {
"experimentalDecorators": true,
},
"exclude": ["node_modules"]
}
Loading

0 comments on commit 69d6619

Please sign in to comment.