Skip to content

61 replace webPack by Vite - #131

Merged
odungern merged 11 commits into
devfrom
61-Replace-WebPack-by-Vite
Nov 15, 2026
Merged

odungern merged 11 commits into
devfrom
61-Replace-WebPack-by-Vite

Conversation

@odungern

@odungern odungern commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Maintain build environment: Replace WebPack by Vite, because the former is deprecated in the Vue environment. As the used version of WebPack is older, there are numerous vulnerabilities that we've got rid of.

…vironment.

- now the real browser version of SAxon-JS is used in the browser with a special loading, as no npm-package was available for it
- add 2 test-suites for PlayWright with testing in a setip with a real browser.
- .. and jest 29.7
- ... and import-xml.ts to accept multiple aProperty values
Merge pull request #127 from GfSE/125-Display-CASCaRA-Types-(Ontology)
Copilot AI balanced review requested due to automatic review settings November 9, 2026 00:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Imported IDs can inject HTML event handlers, while Turtle export incorrectly converts repeated values into RDF lists and URL-shaped literals into IRIs.

5 open issues
What changed in this PR

Migrates the Vue application from Vue CLI/Webpack to Vite to modernize the build environment and reduce legacy dependency exposure. It also updates browser integration tests and several shared import/export behaviors.

Changes:

  • Replaces build configuration, updates dependencies, and loads the Saxon-JS browser runtime separately.
  • Adds production-build browser tests for ReqIF transformation and cache persistence, integrated into CI.
  • Adds ontology navigation links and changes XML property parsing and Turtle serialization.
File Description
tests/​browser/​saxon-js-reqif.spec.ts Adds browser-runtime and ReqIF transformation smoke tests.
tests/​browser/​README.md Documents browser testing and CI integration.
tests/​browser/​item-cache-pinia-store.spec.ts Tests import, persistence, and reload behavior.
tests/​browser/​import-reqif-xslt.spec.ts Removes native-browser XSLT tests.
test-results/​.last-run.json Updates recorded test status.
src/​vue/​stores/​asset-cache.ts Legacy source path; no diff supplied.
src/​vue/​shims-vue.d.ts Legacy declaration path; no diff supplied.
src/​vue/​plugins/​export/​neo4j-api/​export-neo4j.vue Legacy export path; no diff supplied.
src/​vue/​main.ts Legacy entry-point path; no diff supplied.
src/​vue/​App.vue Legacy application path; no diff supplied.
src/​common/​lib/​operations.ts Legacy shared-library path; no diff supplied.
playwright.config.ts Builds and serves the production app for browser tests.
packages/​vue/​vue.config.js Removes Webpack configuration.
packages/​vue/​vite.config.mts Adds Vite plugins, aliases, and security headers.
packages/​vue/​tsconfig.json Switches browser environment types to Vite.
packages/​vue/​src/​main.ts Uses Vite glob imports for plugin discovery.
packages/​vue/​src/​components/​PageOntology.vue Adds titled cross-reference links and outline navigation.
packages/​vue/​public/​index.html Removes the Vue CLI HTML template.
packages/​vue/​package.json Replaces build tooling and updates test dependencies.
packages/​vue/​jest.config.js Replaces the Vue CLI Jest preset with explicit transforms.
packages/​vue/​index.html Adds the Vite entry page and Saxon-JS script.
packages/​vue/​babel.config.js Replaces the Vue CLI Babel preset.
packages/​vue/​.eslintignore Excludes generated and static files from linting.
packages/​common/​tests/​pig-metaclasses-xml.spec.ts Tests importing multiple property values.
packages/​common/​src/​schema/​pig/​ts/​pig-metaclasses.ts Splits XML property values into separate instances.
packages/​common/​src/​lib/​platform-independence.ts Resolves Saxon-JS separately for browser and Node environments.
packages/​common/​src/​lib/​definitions.ts Adds a mailto matching expression.
packages/​common/​src/​export/​ttl/​getTTL.ts Changes repeated-value and URI-like value serialization.
packages/​common/​src/​export/​html/​getHTML.ts Adds title-resolved ontology cross-reference links.
packages/​common/​src/​build-info.ts Refreshes generated version and build metadata.
packages/​common/​package.json Updates version and testing dependencies.
package.json Adds browser tests to the combined test command.
.github/​workflows/​README.md Documents CI and Saxon-JS runtime maintenance.
.github/​workflows/​node.js.yml Installs Chromium and runs combined tests.
.github/​copilot-instructions.md Translates guidance and adds cross-reference rendering requirements.

Review effort: Balanced

- improved Turtle export to include property restrictions plus some refinements
@odungern
odungern merged commit 9317edd into dev Nov 15, 2026
4 checks passed
@odungern
odungern deleted the 61-Replace-WebPack-by-Vite branch November 15, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants