Skip to content

Commit ec76a9c

Browse files
committed
chore: babel 설정 파일 변경
1 parent a358cd6 commit ec76a9c

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
lines changed

.babelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": [
3+
"@babel/preset-react",
4+
"@babel/preset-env",
5+
"@babel/preset-typescript"
6+
]
7+
}

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
node_modules
1+
// module
2+
node_modules
3+
4+
// build
5+
dist

babel.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

webpack.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ const prod = process.env.NODE_ENV === "production";
66
module.exports = {
77
mode: prod ? "production" : "development",
88
devtool: prod ? "hidden-source-map" : "eval",
9+
910
entry: "./src/index.tsx",
11+
output: {
12+
path: path.join(__dirname, "dist"),
13+
filename: "bundle.js",
14+
},
15+
1016
resolve: {
1117
extensions: [".js", ".jsx", ".ts", ".tsx"],
1218
},
@@ -20,11 +26,6 @@ module.exports = {
2026
],
2127
},
2228

23-
output: {
24-
path: path.join(__dirname, "dist"),
25-
filename: "bundle.js",
26-
},
27-
2829
devServer: {
2930
historyApiFallback: true,
3031
port: 3000,

0 commit comments

Comments
 (0)