{"id":22105,"library":"rollup-plugin-jtaro-module","title":"rollup-plugin-jtaro-module","description":"A Rollup plugin for JTaro Module that enables importing CSS, HTML templates, and processing them for Vue.js applications. Version 0.3.2 is the latest stable release, last updated in 2018. It provides features like HTML to Vue render function conversion, style merging, and source map support. Differentiators include simplified module bundling for JTaro-based projects, automatic CSS order management, and integration with Vue render functions.","status":"maintenance","version":"0.3.2","language":"javascript","source_language":"en","source_url":"https://github.com/chjtx/rollup-plugin-jtaro-module","tags":["javascript","jtaro-module","rollup-plugin"],"install":[{"cmd":"npm install rollup-plugin-jtaro-module","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-jtaro-module","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-jtaro-module","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; plugin requires Rollup to function.","package":"rollup","optional":false}],"imports":[{"note":"Default export; plugin is ESM-only. CommonJS require may fail in Rollup config.","wrong":"const jtaroModule = require('rollup-plugin-jtaro-module')","symbol":"jtaroModule","correct":"import jtaroModule from 'rollup-plugin-jtaro-module'"}],"quickstart":{"code":"// rollup.config.js\nimport jtaroModule from 'rollup-plugin-jtaro-module'\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'iife'\n  },\n  plugins: [\n    jtaroModule({\n      root: 'website',\n      html2Render: true\n    })\n  ]\n}\n\n// src/index.js\nimport './reset.css';\nimport template from './template.html';\n\nconsole.log(template);","lang":"javascript","description":"Basic Rollup configuration using the plugin to process CSS and HTML imports, with html2Render option for Vue."},"warnings":[{"fix":"Consider migrating to a maintained alternative or adapting the plugin for Rollup v2+.","message":"Package has not been updated since 2018 and may be incompatible with newer Rollup versions (v2+).","severity":"deprecated","affected_versions":">=0.3.2"},{"fix":"Ensure Vue is installed if using html2Render: true.","message":"The html2Render option requires Vue.js, but the plugin does not explicitly depend on it.","severity":"gotcha","affected_versions":">=0.3.0"},{"fix":"Update to version 0.3.2 or later.","message":"CSS imports may cause infinite loops in certain configurations (fixed in 0.3.2).","severity":"gotcha","affected_versions":"<0.3.2"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"npm install --save-dev rollup-plugin-jtaro-module","cause":"Module not installed or not installed as devDependency.","error":"Error: Cannot find module 'rollup-plugin-jtaro-module'"},{"fix":"Use Rollup v1.x or update the plugin source code.","cause":"Plugin uses Rollup v1 plugin API hooks that are deprecated in v2+.","error":"Error: Invalid hook: the plugin is not compatible with rollup >=2.0"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}