aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/bootstrap.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-10-30 01:51:42 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit657af5906ed50acc9bacea487ac22b6c9c961571 (patch)
tree9804a63b7aa897fa2fec782b99a76f2e3f4f272b /vnext/server/bootstrap.js
parent62f9875418444274c8aa3785ea913677c203e840 (diff)
Read static root from the config
Diffstat (limited to 'vnext/server/bootstrap.js')
-rw-r--r--vnext/server/bootstrap.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/vnext/server/bootstrap.js b/vnext/server/bootstrap.js
new file mode 100644
index 00000000..0f920886
--- /dev/null
+++ b/vnext/server/bootstrap.js
@@ -0,0 +1,11 @@
+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');