{"library":"riot-tag-loader","title":"Riot Tag Loader","description":"Webpack loader for compiling Riot.js tag files (.tag). The official loader maintained by the Riot team. Current stable version is v9.0.1, with v10.0.0 in alpha requiring Riot v10 and Node >=22. Handles parsing of Riot tags into JavaScript modules, supports hot module replacement via riot-hot-reload, and offers sourcemap configuration. Key differentiator: tightly coupled with riot-compiler, supports webpack 5, ESM-first from v9. Breaking changes: dropped webpack <=4 and Node <18 in v9, migrated from CJS to ESM. Release cadence: major version bumps with Riot compiler releases.","language":"javascript","status":"active","last_verified":"Sat May 09","install":{"commands":["npm install riot-tag-loader"],"cli":null},"imports":["import riotTagLoader from 'riot-tag-loader'","module.exports = { module: { rules: [ { test: /\\.tag$/, use: ['riot-tag-loader'] } ] } }","import 'riot-hot-reload'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// webpack.config.js\nimport path from 'path';\nimport { fileURLToPath } from 'url';\nconst __dirname = path.dirname(fileURLToPath(import.meta.url));\nexport default {\n  entry: './src/index.js',\n  output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js' },\n  module: {\n    rules: [\n      {\n        test: /\\.tag$/,\n        exclude: /node_modules/,\n        use: [\n          {\n            loader: 'riot-tag-loader',\n            options: { hot: false }\n          }\n        ]\n      }\n    ]\n  }\n};","lang":"javascript","description":"Shows a minimal webpack 5 configuration using riot-tag-loader with ESM syntax, targeting .tag files.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}