@ossy/app 1.24.0 → 1.24.1

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.
Files changed (2) hide show
  1. package/cli/build.task.js +8 -7
  2. package/package.json +10 -10
package/cli/build.task.js CHANGED
@@ -204,13 +204,14 @@ export async function build (cliArgs = []) {
204
204
 
205
205
  const bundle = await rollup({
206
206
  input: stubInputMap,
207
- // Pages execute in BOTH runtimes (Node SSR + browser hydration). We only
208
- // externalize Node built-ins; everything else (React, ReactDOM, App
209
- // wrapper, page deps) is bundled into per-entry chunks with shared chunks
210
- // hoisted by Rollup. The platform server never imports React directly, so
211
- // the dual-package hazard cannot happenthere is exactly one React in
212
- // the page bundle, regardless of runtime.
213
- external: (id) => id.startsWith('node:') || NODE_BUILTINS.has(id),
207
+ // Pages execute in BOTH runtimes (Node SSR + browser hydration). We
208
+ // externalize Node built-ins so the runtime resolves them. Native-addon
209
+ // packages (sharp, @img/sharp-*) are also kept external: their module-level
210
+ // code loads platform-specific binaries, and the manifest plugin imports
211
+ // bundled task files at build time bundling sharp would trigger its binary
212
+ // loader during the build, which fails on linux-arm64 builders that don't
213
+ // have the darwin binaries installed.
214
+ external: (id) => id.startsWith('node:') || NODE_BUILTINS.has(id) || id === 'sharp' || id.startsWith('@img/sharp-'),
214
215
  plugins: [
215
216
  replace({
216
217
  preventAssignment: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/app",
3
- "version": "1.24.0",
3
+ "version": "1.24.1",
4
4
  "description": "",
5
5
  "source": "./src/index.js",
6
6
  "main": "./src/index.js",
@@ -37,15 +37,15 @@
37
37
  "@babel/eslint-parser": "^7.15.8",
38
38
  "@babel/preset-react": "^7.26.3",
39
39
  "@babel/register": "^7.25.9",
40
- "@ossy/connected-components": "^1.24.0",
41
- "@ossy/design-system": "^1.24.0",
40
+ "@ossy/connected-components": "^1.24.1",
41
+ "@ossy/design-system": "^1.24.1",
42
42
  "@ossy/pages": "^1.23.0",
43
- "@ossy/platform": "^1.23.0",
44
- "@ossy/router": "^1.24.0",
45
- "@ossy/router-react": "^1.24.0",
46
- "@ossy/sdk": "^1.24.0",
47
- "@ossy/sdk-react": "^1.24.0",
48
- "@ossy/themes": "^1.24.0",
43
+ "@ossy/platform": "^1.23.1",
44
+ "@ossy/router": "^1.24.1",
45
+ "@ossy/router-react": "^1.24.1",
46
+ "@ossy/sdk": "^1.24.1",
47
+ "@ossy/sdk-react": "^1.24.1",
48
+ "@ossy/themes": "^1.24.1",
49
49
  "@rollup/plugin-alias": "^6.0.0",
50
50
  "@rollup/plugin-babel": "^7.0.0",
51
51
  "@rollup/plugin-commonjs": "^29.0.0",
@@ -79,5 +79,5 @@
79
79
  "README.md",
80
80
  "tsconfig.json"
81
81
  ],
82
- "gitHead": "eabc1ddca6f83721efa11f044422ab8628929c88"
82
+ "gitHead": "c4dfd4a2cc4a6977ce00dc223c91dbaecc3348ba"
83
83
  }