2026-06-02 11:55:14 +00:00
|
|
|
{
|
|
|
|
|
"compilerOptions": {
|
|
|
|
|
"target": "ES2022",
|
fix: explain unsupported browsers instead of a blank window (#745)
* fix: explain unsupported browsers instead of a blank window
The desktop app on macOS 13 with WebKit older than Safari 17.4 opened an
empty window because startup called Promise.withResolvers, which Vite lowers
nothing for: build.target only rewrites syntax and never polyfills APIs, and
the target itself was an implicit Vite default (#744).
Make the supported baseline explicit in src/app/shell/support/baseline.ts and
feed it to build.target, a lint rule that rejects newer static built-ins in
browser-shipped sources, and the documented system requirements. Replace
Promise.withResolvers with a createDeferred() helper.
Turn src/main.ts into a small gate that checks sentinel features before
dynamically importing the app, so an old engine still evaluates enough code
to render platform-specific update guidance: macOS/Safari via Software
Update, WebKitGTK and WebView2 on Linux and Windows, and each browser's
own update path on the web, with a prefilled bug report link. Render-blocking
errors during the first route are captured through app.config.errorHandler
and shown the same way instead of leaving the window blank.
Desktop facts come from tauri-plugin-os and a webview_version command; the
bundle now declares macOS 13 as its minimum system version.
* build: enforce the browser baseline from compatibility data
Replace the hand-maintained list of built-ins newer than the baseline with
two data-driven checks. The app and browser-shipped packages pin their
TypeScript lib to ES2023, the last edition Chrome 111, Firefox 128 and
Safari 16.4 implement in full, so a newer built-in such as
Promise.withResolvers fails type-checking. Web APIs, which lib.dom does not
version, go through eslint-plugin-compat under oxlint with the same browsers
in settings.browsers, scoped to sources that ship to a browser.
A unit test keeps the oxlint browser list and the tsconfig libs derived from
src/app/shell/support/baseline.ts, so the three cannot drift apart.
* fix: recognise production error codes in the boot observer
Vue passes the error reference URL as the errorHandler info argument in
production builds instead of the development string, so the observer never
classified a setup or render failure as fatal in the shipped app and the
boot-failure notice only appeared on the dev server. Match Vue's exported
ErrorCodes in both forms, and cover the component-setup path in the E2E
spec; the scenario was also verified against a production build.
2026-09-22 10:40:59 +00:00
|
|
|
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
2026-06-02 11:55:14 +00:00
|
|
|
"module": "ESNext",
|
|
|
|
|
"moduleResolution": "bundler",
|
|
|
|
|
"strict": true,
|
|
|
|
|
"declaration": true,
|
|
|
|
|
"declarationDir": "./dist",
|
|
|
|
|
"outDir": "./dist",
|
|
|
|
|
"rootDir": ".",
|
|
|
|
|
"skipLibCheck": true,
|
|
|
|
|
"esModuleInterop": true,
|
|
|
|
|
"resolveJsonModule": true,
|
2026-06-03 13:38:44 +00:00
|
|
|
"jsx": "react-jsx",
|
|
|
|
|
"jsxImportSource": "@open-pencil/dom-css",
|
2026-06-03 12:16:08 +00:00
|
|
|
"types": ["bun"],
|
2026-06-02 11:55:14 +00:00
|
|
|
"paths": {
|
2026-06-03 13:38:44 +00:00
|
|
|
"#dom-css/*": ["./src/*"],
|
|
|
|
|
"@open-pencil/dom-css": ["./src/index.ts"],
|
2026-06-03 17:17:48 +00:00
|
|
|
"@open-pencil/dom-css/browser": ["./src/browser.ts"],
|
refactor(dom-css): group sources into import, export, and runtime (#789)
* refactor(dom-css): group sources into import, export, and runtime
dom-css kept both conversion directions in one flat folder: HTML and CSS
import next to SceneGraph export, a JSX runtime next to the Tailwind JSX
printer, and CSS parsing and formatting in one file.
Sources now live in `import/`, `export/`, and `runtime/`, with the CSS
value helpers split by direction and `export/index.ts` as the `./export`
entry. Tests mirror the new folders. Public entry points are unchanged.
* docs(dom-css): add a package guide for the import, export, and runtime layout
dom-css had no AGENTS.md. The guide records the source layout, the
scene-graph-only dependency, the browser-safe `./export` entry, printed
code generation, and Base64 validation for imported documents, and the
root map links to it.
2026-09-30 05:44:52 +00:00
|
|
|
"@open-pencil/dom-css/export": ["./src/export/index.ts"],
|
|
|
|
|
"@open-pencil/dom-css/jsx-runtime": ["./src/import/jsx/runtime.ts"],
|
|
|
|
|
"@open-pencil/dom-css/jsx-dev-runtime": ["./src/import/jsx/dev-runtime.ts"]
|
2026-06-02 11:55:14 +00:00
|
|
|
}
|
|
|
|
|
},
|
2026-06-03 13:38:44 +00:00
|
|
|
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts"],
|
2026-06-02 11:55:14 +00:00
|
|
|
"exclude": ["node_modules", "dist"]
|
|
|
|
|
}
|