aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-03-06 08:29:48 +0300
committerGravatar Vitaly Takmazov2023-03-06 08:29:48 +0300
commit7f7d6dcbc7fbce6ff6c9171823ebe7a78604e85d (patch)
treee3a8f0da3765b123d918c1a4b4f1a9dead89cdb0 /package.json
parentbd7776515e26d27288093986881735376355c52c (diff)
vnext: esbuild -> webpack
Diffstat (limited to 'package.json')
-rw-r--r--package.json10
1 files changed, 8 insertions, 2 deletions
diff --git a/package.json b/package.json
index f8e3f046..dd06b29f 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
"lint": "eslint .",
"vnext:test": "jest",
"vnext:build:css": "postcss --verbose --map style.css.map vnext/src/index.css -d public/",
- "vnext:build:js": "esbuild vnext/src/index.js --bundle --target=safari11 --loader:.js=jsx --loader:.png=file --loader:.svg=file --outdir=public",
+ "vnext:build:js": "webpack -c vnext/webpack.config.js",
"vnext:build": "cross-env NODE_ENV=production concurrently \"npm run vnext:build:css\" \"npm run vnext:build:js -- --sourcemap --keep-names --minify\"",
"vnext:build:ssr": "npm run vnext:build && esbuild --bundle --sourcemap --minify --keep-names --platform=node --target=node18 --loader:.js=jsx --loader:.png=file --loader:.svg=file --outfile=public/server.js vnext/server/index.js",
"vnext:start-ssr": "npm run vnext:build:ssr && cross-env DEBUG=http node public/server.js",
@@ -33,12 +33,19 @@
"es.symbol.*"
]
}
+ ],
+ [
+ "@babel/preset-react",
+ {
+ "runtime": "automatic"
+ }
]
]
},
"devDependencies": {
"@babel/core": "^7.21.0",
"@babel/preset-env": "^7.20.2",
+ "@babel/preset-react": "^7.18.6",
"@swc/core": "^1.3.37",
"@swc/jest": "^0.2.24",
"@testing-library/jest-dom": "^5.16.5",
@@ -50,7 +57,6 @@
"core-js": "^3.29.0",
"cross-env": "^7.0.3",
"cssnano": "^5.1.15",
- "esbuild": "^0.17.11",
"eslint": "8.35.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",