@uniweb/build 0.1.9 → 0.1.11
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 +1 -1
- package/src/prerender.js +1 -1
- package/src/site/config.js +2 -1
package/package.json
CHANGED
package/src/prerender.js
CHANGED
|
@@ -256,7 +256,7 @@ function PageRenderer({ page, foundation }) {
|
|
|
256
256
|
*/
|
|
257
257
|
function BlockRenderer({ block, foundation }) {
|
|
258
258
|
// Get component from foundation
|
|
259
|
-
const componentName = block.
|
|
259
|
+
const componentName = block.type
|
|
260
260
|
let Component = null
|
|
261
261
|
|
|
262
262
|
if (typeof foundation.getComponent === 'function') {
|
package/src/site/config.js
CHANGED
|
@@ -291,7 +291,8 @@ export async function defineSiteConfig(options = {}) {
|
|
|
291
291
|
},
|
|
292
292
|
|
|
293
293
|
optimizeDeps: {
|
|
294
|
-
include: ['react', 'react-dom', 'react-dom/client', 'react-router-dom']
|
|
294
|
+
include: ['react', 'react-dom', 'react-dom/client', 'react-router-dom'],
|
|
295
|
+
exclude: ['virtual:uniweb-site-entry']
|
|
295
296
|
},
|
|
296
297
|
|
|
297
298
|
...restOptions
|