@wix/origami-site-express 0.1.5 → 0.1.6

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": "@wix/origami-site-express",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Run an exported Wix origami site on Node with Express and Vite.",
5
5
  "type": "module",
6
6
  "files": [
@@ -65,5 +65,5 @@
65
65
  ]
66
66
  }
67
67
  },
68
- "falconPackageHash": "6752e2f2177eb2d994c6179584089e00c5367134074ffcb8d5b74572"
68
+ "falconPackageHash": "b9bc933e5f366a395d6737e9592dfcb24d7a6c0f1e6d87ea533712a5"
69
69
  }
@@ -18,6 +18,11 @@ export async function build({ root }) {
18
18
  await viteBuild({
19
19
  root, configFile: false, mode: 'production',
20
20
  plugins: [...origamiVitePlugins({ root, siteTree }), react()],
21
+ // Vite 8 minifies CSS with lightningcss, which rejects rules browsers just ignore, like the Menu CSS of
22
+ // @wix/editor-react-components: `@property --wix-menu-dropdown-anchor` without the required initial-value.
23
+ // errorRecovery drops such rules with a warning. It applies to all CSS: a site's own invalid CSS also builds, with
24
+ // the broken rules dropped and warned about. Remove it once that package ships valid CSS.
25
+ css: { lightningcss: { errorRecovery: true } },
21
26
  build: { outDir: 'dist/client', emptyOutDir: true, manifest: true, rolldownOptions: { input: CLIENT_ENTRY } },
22
27
  })
23
28
  // Last, so a failed client build never leaves a table that start would accept.