{"id":22121,"library":"rollup-plugin-lwc-typescript","title":"rollup-plugin-lwc-typescript","description":"Rollup plugin to transform TypeScript files to JavaScript for Lightning Web Components (LWC). Current stable version is 1.0.1 (deprecated view; the broader ecosystem moved to lwc-services 3.x and LWC 2.x). Release cadence is low; no updates since 2020. Differentiator: specifically tailored for LWC TypeScript compilation, using the TypeScript compiler directly. Alternatives: use LWC's official webpack-based compilation or the lwc-services CLI.","status":"deprecated","version":"1.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/muenzpraeger/create-lwc-app","tags":["javascript","oclif","lwc","salesforce","web components","lightning"],"install":[{"cmd":"npm install rollup-plugin-lwc-typescript","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-lwc-typescript","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-lwc-typescript","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required as peer dependency for Rollup plugin functionality","package":"rollup","optional":false},{"reason":"Used to compile TypeScript files","package":"typescript","optional":false},{"reason":"LWC build system that replaced this plugin","package":"lwc-services","optional":true}],"imports":[{"note":"The plugin is exported as default, not a named export.","wrong":"import { lwcTypescript } from 'rollup-plugin-lwc-typescript'","symbol":"default","correct":"import lwcTypescript from 'rollup-plugin-lwc-typescript'"},{"note":"CommonJS require returns the default export.","wrong":"const { lwcTypescript } = require('rollup-plugin-lwc-typescript')","symbol":"rollupPluginLwcTypescript (CommonJS)","correct":"const lwcTypescript = require('rollup-plugin-lwc-typescript')"},{"note":"TypeScript types are available from the package.","wrong":"","symbol":"TypeScriptConfig","correct":"import type { TypeScriptConfig } from 'rollup-plugin-lwc-typescript'"}],"quickstart":{"code":"// rollup.config.js\nimport lwcTypescript from 'rollup-plugin-lwc-typescript';\nimport resolve from '@rollup/plugin-node-resolve';\nimport commonjs from '@rollup/plugin-commonjs';\n\nexport default {\n  input: 'src/component.ts',\n  output: {\n    file: 'dist/component.js',\n    format: 'esm'\n  },\n  plugins: [\n    resolve(),\n    commonjs(),\n    lwcTypescript()\n  ]\n};","lang":"javascript","description":"Shows basic Rollup configuration using LWC TypeScript plugin to compile a component."},"warnings":[{"fix":"Migrate to LWC's official webpack-based build system or use lwc-services CLI.","message":"Package is deprecated and no longer maintained.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Use lwc-services 3.x or higher which supports LWC 2.x.","message":"LWC 2.x upgraded to @lwc/engine-dom from @lwc/engine; this plugin was not updated and may produce incompatible code.","severity":"breaking","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"npm install rollup-plugin-lwc-typescript --save-dev","cause":"Package not installed or outdated npm cache.","error":"Cannot find module 'rollup-plugin-lwc-typescript'"},{"fix":"Use: import lwcTypescript from 'rollup-plugin-lwc-typescript';","cause":"Incorrect import style; used named import instead of default.","error":"TypeError: lwcTypescript is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}