LearnNewsExamplesServices
Frontmatter
id7140
titleBundle `parse5` for Browser Compatibility
stateClosed
labels
enhancement
assigneestobiu
createdAtJul 31, 2025, 9:55 AM
updatedAtJul 31, 2025, 10:01 AM
githubUrlhttps://github.com/neomjs/neo/issues/7140
authortobiu
commentsCount0
parentIssue7130
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJul 31, 2025, 10:01 AM

Bundle parse5 for Browser Compatibility

Closed v10.3.0 enhancement
tobiu
tobiu commented on Jul 31, 2025, 9:55 AM

Description: To adhere to the framework's "zero builds" development principle, the parse5 library cannot be imported directly from node_modules at runtime. A build step is required to convert it into a browser-compatible ES module. This bundled file will be checked into the dist directory and imported by the HtmlTemplateProcessor.

Implementation Details:

  • Tool: esbuild
  • Source: node_modules/parse5/dist/index.js
  • Output: dist/parse5.mjs
  • Script: Create a new build script buildScripts/bundleParse5.mjs and an associated npm script bundle-parse5 to perform the bundling and minification.
  • Outcome: The HtmlTemplateProcessor will be updated to import ../../../dist/parse5.mjs.
tobiu assigned to @tobiu on Jul 31, 2025, 9:55 AM
tobiu added the enhancement label on Jul 31, 2025, 9:55 AM
tobiu added parent issue #7130 on Jul 31, 2025, 9:55 AM
tobiu referenced in commit 616d0a5 - "Bundle parse5 for Browser Compatibility #7140" on Jul 31, 2025, 10:01 AM
tobiu closed this issue on Jul 31, 2025, 10:01 AM