LearnNewsExamplesServices
Frontmatter
id7161
titleIntegrate Template Processing into `dist/production` Build
stateClosed
labels
enhancement
assigneestobiu
createdAtAug 2, 2025, 1:33 PM
updatedAtAug 2, 2025, 2:49 PM
githubUrlhttps://github.com/neomjs/neo/issues/7161
authortobiu
commentsCount1
parentIssue7130
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 2, 2025, 2:49 PM

Integrate Template Processing into dist/production Build

Closed v10.3.0 enhancement
tobiu
tobiu commented on Aug 2, 2025, 1:33 PM

1. Summary

Use the new reusable astTemplateProcessor to enable build-time html template transformation for the dist/production Webpack environment.

2. Rationale

This is the final step to ensure html templates are a fully supported, production-ready feature. The transformation must be applied to the dist/production build to gain the performance benefits of pre-compilation in the most optimized deployment environment.

3. Scope & Implementation Plan

  1. Reuse Webpack Loader: The same custom Webpack loader created for sub-task #26 can be used.
  2. Configure Webpack: Update the Webpack configuration for dist/production to apply the template-loader.mjs to all .mjs files before they are passed to other loaders like Babel or Terser.

4. Definition of Done

  • The dist/production build process correctly transforms html templates into VDOM objects.
  • The final, minified production bundles contain optimized VDOM, not raw html template strings.
  • Applications running in dist/production mode render components using html templates correctly.
tobiu assigned to @tobiu on Aug 2, 2025, 1:33 PM
tobiu added the enhancement label on Aug 2, 2025, 1:33 PM
tobiu added parent issue #7130 on Aug 2, 2025, 1:33 PM
tobiu referenced in commit 6410cdd - "Integrate Template Processing into dist/production Build #7161" on Aug 2, 2025, 2:49 PM
tobiu
tobiu Aug 2, 2025, 2:49 PM
Image
tobiu closed this issue on Aug 2, 2025, 2:49 PM