You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System and version (if applicable): Windows 11
Node Version (if applicable): v18.16.1
Does it work with tsc (if applicable): yes
Reproduction
I am trying to bundle material-components/material-web so I cloned it there and added rollup and rollup-plugin-ts and nothing else:
"rollup": "^4.1.5",
"rollup-plugin-ts": "^3.4.5",
Running rollup -c is successful and all is packed except Lit components. These are the result files:
// all.bundled.jsimport{customElement,property,state,query,queryAssignedElements,queryAll,queryAsync,queryAssignedNodes}from'lit/decorators.js';import{LitElement,html,css,isServer,nothing,render}from'lit';import{classMap}from'lit/directives/class-map.js';import{literal,htmlashtml$1}from'lit/static-html.js';import{styleMap}from'lit/directives/style-map.js';import{when}from'lit/directives/when.js';import{live}from'lit/directives/live.js';// Other content...
Everything should be contained within the bundled file. No import statement should be there.
Actual Behavior
import statements at the beginning of the file. I also tried switching to @rollup/plugin-typescript and it gives the same result as well, all references to Lit are kept with import.
The text was updated successfully, but these errors were encountered:
tsc
(if applicable): yesReproduction
I am trying to bundle material-components/material-web so I cloned it there and added
rollup
androllup-plugin-ts
and nothing else:Running
rollup -c
is successful and all is packed except Lit components. These are the result files:This is my
rollup.config.js
:Expected Behavior
Everything should be contained within the bundled file. No
import
statement should be there.Actual Behavior
import
statements at the beginning of the file. I also tried switching to@rollup/plugin-typescript
and it gives the same result as well, all references to Lit are kept withimport
.The text was updated successfully, but these errors were encountered: