Skip to content

Commit

Permalink
fix : babelrc.js 경로 수정, export 변환
Browse files Browse the repository at this point in the history
1. bundle 할 때 module export 관련 에러가 있어
ECMAScript modules 을 CommonJS module 로 바꿔주는 플러그인 설치
2. babel 설정파일 경로가 잘못되어 제대로 변경
  • Loading branch information
maong0927 committed Dec 20, 2020
1 parent 59f18ff commit 053d766
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"devDependencies": {
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"@babel/plugin-transform-modules-commonjs": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-typescript": "^7.12.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
exclude: /node_modules\/(?!(axios|@santry|error-stack-parser|ua-parser-js))/,
loader: 'babel-loader',
options: {
configFile: '../../babel.config.js',
configFile: path.resolve(__dirname, '.babelrc.js'),
},
},
],
Expand Down
3 changes: 3 additions & 0 deletions packages/node/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ module.exports = {
test: /\.(ts|tsx|js|jsx)$/,
exclude: /node_modules\/(?!(axios|@santry|error-stack-parser|ua-parser-js))/,
loader: 'babel-loader',
options: {
configFile: path.resolve(__dirname, '.babelrc.js'),
},
},
],
},
Expand Down

0 comments on commit 053d766

Please sign in to comment.