{"library":"rollup-plugin-sham-ui-templates","title":"rollup-plugin-sham-ui-templates","description":"Rollup plugin that compiles sham-ui template files (.sht, .sfc) during bundling. Version 1.1.0 is current. Supports two file types: standard templates and single-file components. Requires @rollup/plugin-babel for transformation. Minimal configuration; designed specifically for sham-ui projects.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-sham-ui-templates"],"cli":null},"imports":["import shamUICompiler from 'rollup-plugin-sham-ui-templates'","import shamUICompiler from 'rollup-plugin-sham-ui-templates'","shamUICompiler({ extensions: ['.sht'] })"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport shamUICompiler from 'rollup-plugin-sham-ui-templates';\nimport { babel } from '@rollup/plugin-babel';\n\nexport default {\n    input: 'src/main.js',\n    output: {\n        file: 'dist/bundle.js',\n        format: 'iife',\n        sourcemap: true\n    },\n    plugins: [\n        shamUICompiler({\n            extensions: ['.sht']\n        }),\n        shamUICompiler({\n            extensions: ['.sfc'],\n            compilerOptions: {\n                asModule: false,\n                asSingleFileComponent: true\n            }\n        }),\n        babel({\n            extensions: ['.js', '.sht', '.sfc'],\n            exclude: ['node_modules/**'],\n            babelHelpers: 'bundled'\n        })\n    ]\n};","lang":"javascript","description":"Shows Rollup configuration using two shamUICompiler instances for .sht and .sfc files, with Babel processing.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}