Skip to content

How to transpile ts files including lit-element and decorators in each ts transpilers (babel, esbuild, sucrase, swc, tsc)

Notifications You must be signed in to change notification settings

naoak/how-to-bundle-lit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This package demonstrates how to transpile ts files including lit-element and decorators in each ts transpilers (babel, esbuild, sucrase, swc, tsc), mainly investigating issues around class fileds and decorators.

Build

To build all demos,

npm run build

To build a demo,

npm run build -w <demo-name>

Launch a Demo

To serve a demo,

npm run serve -w <demo-name>

Demo List

  • babel-lit-demo
  • esbuild-lit-demo
  • sucrase-lit-demo (decorators are not working)
  • swc-lit-demo (decorators work from swc@1.2.175)
  • tsc-lit-demo
  • tsc-polymer-demo

About

How to transpile ts files including lit-element and decorators in each ts transpilers (babel, esbuild, sucrase, swc, tsc)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published