{"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,"search_vec":"'1.0.1':23 '2':38 '2020':47 '3':34 'altern':60 'base':67 'broader':27 'cadenc':41 'cli':74 'compil':54,58,68 'compon':17,80 'current':19 'deprec':24 'differenti':48 'direct':59 'ecosystem':28 'file':11 'javascript':13,75 'lightn':15,81 'low':43 'lwc':4,18,32,37,52,62,72,77 'lwc-servic':31,71 'move':29 'oclif':76 'offici':64 'plugin':3,7 'releas':40 'rollup':2,6 'rollup-plugin-lwc-typescript':1 'salesforc':78 'servic':33,73 'sinc':46 'specif':49 'stabl':20 'tailor':50 'transform':9 'typescript':5,10,53,57 'updat':45 'use':55,61 'version':21 'view':25 'web':16,79 'webpack':66 'webpack-bas':65 'x':35,39","created_at":"2026-04-27T17:03:30.003274+00:00","updated_at":"2026-04-27T17:03:30.003274+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/muenzpraeger/create-lwc-app","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/rollup-plugin-lwc-typescript","openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-07-26","install_tag":null}}