@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/build",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Build tooling for the Uniweb Component Web Platform",
5
5
  "type": "module",
6
6
  "exports": {
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.component
259
+ const componentName = block.type
260
260
  let Component = null
261
261
 
262
262
  if (typeof foundation.getComponent === 'function') {
@@ -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