startupjs 0.39.3 → 0.39.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "startupjs",
3
3
  "type": "module",
4
- "version": "0.39.3",
4
+ "version": "0.39.8",
5
5
  "engines": {
6
6
  "node": ">= 14"
7
7
  },
@@ -10,10 +10,10 @@
10
10
  "bin": "./cli.js",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@startupjs/app": "^0.39.3",
14
- "@startupjs/backend": "^0.39.0",
15
- "@startupjs/bundler": "^0.39.0",
16
- "@startupjs/cli": "^0.39.0",
13
+ "@startupjs/app": "^0.39.4",
14
+ "@startupjs/backend": "^0.39.5",
15
+ "@startupjs/bundler": "^0.39.6",
16
+ "@startupjs/cli": "^0.39.8",
17
17
  "@startupjs/hooks": "^0.39.0",
18
18
  "@startupjs/i18n": "^0.39.2",
19
19
  "@startupjs/init": "^0.39.0",
@@ -21,9 +21,9 @@
21
21
  "@startupjs/orm": "^0.39.0",
22
22
  "@startupjs/patches": "^0.39.0",
23
23
  "@startupjs/react-sharedb": "^0.39.0",
24
- "@startupjs/server": "^0.39.0",
25
- "babel-preset-startupjs": "^0.39.0",
24
+ "@startupjs/server": "^0.39.5",
25
+ "babel-preset-startupjs": "^0.39.6",
26
26
  "react-native-web": "^0.14.3"
27
27
  },
28
- "gitHead": "b239f9d74bf205d655b71cc86cd3e13be0a7e893"
28
+ "gitHead": "82e3d93947714f20aedc7bc5de52cde6b49a000f"
29
29
  }
File without changes
File without changes
@@ -1,2 +1,3 @@
1
+ /* @asyncImports */
1
2
  export { default as PHome } from './PHome'
2
3
  export { default as PAbout } from './PAbout'
File without changes
@@ -1,10 +1,12 @@
1
- import React from 'react'
2
- import ReactDOM from 'react-dom'
1
+ import { Suspense, createElement as el } from 'react'
2
+ import { render } from 'react-dom'
3
3
  import Root from './Root'
4
4
 
5
5
  const ROOT_CONTAINER_ID = 'app'
6
6
 
7
- ReactDOM.render(
8
- <React.Suspense fallback={null}><Root /></React.Suspense>,
7
+ render(
8
+ el(Suspense, { fallback: null },
9
+ el(Root)
10
+ ),
9
11
  document.getElementById(ROOT_CONTAINER_ID)
10
12
  )
@@ -0,0 +1,9 @@
1
+ import startupjsPlugin from '@startupjs/vite-plugin-startupjs'
2
+ import { defineConfig } from 'vite'
3
+
4
+ // https://vitejs.dev/config/
5
+ export default defineConfig({
6
+ plugins: [
7
+ startupjsPlugin()
8
+ ]
9
+ })
File without changes
File without changes
@@ -1,3 +0,0 @@
1
- import Root from './index.js'
2
-
3
- export default Root
@@ -1,3 +0,0 @@
1
- const config = require('startupjs/bundler/vite.config.cjs')
2
-
3
- module.exports = config