You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Re-minifying the language service worker breaks JSON Schema diagnostics #489
JSON Schema diagnostics fail in the production build of the vanilla Web Component PoC when the consuming application minifies the already-minified Text Editor language service worker.
The JSON language service throws:
Language service plugin "json" failed to provide document feature:
TypeError: Cannot read properties of undefined (reading 'include')
The exception is caught and diagnostics return an empty array, leaving invalid workflows without schema warnings. JSON syntax errors can still produce squiggles, making the failure less obvious.
Observe that schema diagnostics are missing and the worker reports the exception above.
Expected Behavior
Production builds provide JSON Schema diagnostics consistently with development builds, including warnings for the invalid wrong property and missing required properties.
Discovered while validating #380 and reproduced in the GitHub Pages deployment. Local development server was not affected.
Setting build.minify: false in packages/text-editor/vite.config.ts, leaving minification to the consuming application, restored schema diagnostics in production.
This is the current PoC workaround. The underlying minifier transformation still needs investigation.
Activity
fix open-workflow-specification#489 - bug: Re-minifying the language …