{"library":"esbuild-plugin-html-modules","type":"library","category":null,"description":"An esbuild plugin that enables loading HTML files as ES modules, following the WICG HTML Modules proposal. Version 0.9.1 allows importing HTML files with `import` statements, where the HTML template becomes the default export and `<script type=\"module\">` code runs as the module script. Supports configuration for global CSS extraction, local style transformation via PostCSS, and custom file filters. Key differentiator: enables web component authors to co-locate templates, scripts, and styles in single HTML files with standard ES module semantics. Released weekly, actively maintained.","language":"javascript","status":"active","version":"0.9.1","tags":["javascript","esbuild","esbuild-plugin"],"last_verified":"Fri May 01","install":[{"cmd":"npm install esbuild-plugin-html-modules","imports":["import htmlModulesPlugin from 'esbuild-plugin-html-modules'","import { htmlModulesPlugin } from 'esbuild-plugin-html-modules'","import type { HtmlModulesPluginOptions } from 'esbuild-plugin-html-modules'"]},{"cmd":"yarn add esbuild-plugin-html-modules","imports":[]},{"cmd":"pnpm add esbuild-plugin-html-modules","imports":[]}],"homepage":"https://codeberg.org/jaredwhite/esbuild-plugin-html-modules#readme","github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/esbuild-plugin-html-modules","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}