Skip to content

Commit

Permalink
Babel 설정 수정 (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoo0122 authored Oct 28, 2020
1 parent 84039eb commit daa1c1e
Show file tree
Hide file tree
Showing 4 changed files with 735 additions and 33 deletions.
22 changes: 22 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,35 @@ module.exports = {
'@babel/preset-react',
['@babel/preset-typescript', { isTSX: true, allExtensions: true }],
],
plugins: [
["@babel/plugin-proposal-decorators", { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: false }],
['@babel/plugin-transform-classes', { loose: true }],
['transform-imports', {
'core-decorators': {
transform: 'core-decorators/lib/${member}',
preventFullImport: true,
},
}],
],
},
build: {
presets: [
['@babel/preset-env'],
'@babel/preset-react',
['@babel/preset-typescript', { isTSX: true, allExtensions: true }],
],
plugins: [
["@babel/plugin-proposal-decorators", { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: false }],
['@babel/plugin-transform-classes', { loose: true }],
['transform-imports', {
'core-decorators': {
transform: 'core-decorators/lib/${member}',
preventFullImport: true,
},
}],
],
},
},
}
Loading

0 comments on commit daa1c1e

Please sign in to comment.