aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
Diffstat (limited to 'vnext')
-rw-r--r--vnext/package-lock.json28
-rw-r--r--vnext/package.json2
-rw-r--r--vnext/server/bootstrap.js11
3 files changed, 30 insertions, 11 deletions
diff --git a/vnext/package-lock.json b/vnext/package-lock.json
index bf5719c0..ef2126eb 100644
--- a/vnext/package-lock.json
+++ b/vnext/package-lock.json
@@ -50,6 +50,7 @@
"@testing-library/react": "^13.4.0",
"babel-jest": "^29.2.2",
"babel-loader": "^9.0.1",
+ "cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.2.2",
"error-overlay-webpack-plugin": "^1.1.0",
@@ -5690,6 +5691,24 @@
"node": ">=10"
}
},
+ "node_modules/cross-env": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
+ "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
+ "dev": true,
+ "dependencies": {
+ "cross-spawn": "^7.0.1"
+ },
+ "bin": {
+ "cross-env": "src/bin/cross-env.js",
+ "cross-env-shell": "src/bin/cross-env-shell.js"
+ },
+ "engines": {
+ "node": ">=10.14",
+ "npm": ">=6",
+ "yarn": ">=1"
+ }
+ },
"node_modules/cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
@@ -22068,6 +22087,15 @@
"yaml": "^1.10.0"
}
},
+ "cross-env": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
+ "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
+ "dev": true,
+ "requires": {
+ "cross-spawn": "^7.0.1"
+ }
+ },
"cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
diff --git a/vnext/package.json b/vnext/package.json
index f6ff2296..a8d5346d 100644
--- a/vnext/package.json
+++ b/vnext/package.json
@@ -5,6 +5,7 @@
"scripts": {
"test": "jest",
"dist": "webpack --mode=production --progress && esbuild --bundle --sourcemap --keep-names --platform=node --target=node18 --loader:.css=file --loader:.js=jsx --loader:.png=file --loader:.svg=file --outfile=dist/server.js server/index.js",
+ "start-ssr": "npm run dist && cross-env DEBUG=http node dist/server.js",
"start": "webpack serve"
},
"keywords": [],
@@ -21,6 +22,7 @@
"@testing-library/react": "^13.4.0",
"babel-jest": "^29.2.2",
"babel-loader": "^9.0.1",
+ "cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.2.2",
"error-overlay-webpack-plugin": "^1.1.0",
diff --git a/vnext/server/bootstrap.js b/vnext/server/bootstrap.js
deleted file mode 100644
index 0f920886..00000000
--- a/vnext/server/bootstrap.js
+++ /dev/null
@@ -1,11 +0,0 @@
-require('ignore-styles');
-require('url-loader');
-require('file-loader');
-require('@babel/register')({
- ignore: [/(node_modules)/],
- presets: [
- '@babel/preset-env',
- ['@babel/preset-react', { 'runtime': 'automatic' }]
- ]
-});
-require('./index');