umbopepato / rollup-plugin-postcss-lit

Rollup plugin to load PostCSSed stylesheets in LitElement components
MIT License
34 stars 6 forks source link

Updates to newest version of 'lit' #46

Closed JacobWeinbren closed 2 years ago

JacobWeinbren commented 2 years ago

This removes the deprecation warning for lit-element which shows up when using this plugin.

JacobWeinbren commented 2 years ago

@umbopepato I think this is all that is needed, but I am not sure how to test this.

import {LitElement, html} from 'lit-element'; becomes import {LitElement, html} from 'lit';

umbopepato commented 2 years ago

Hi @JacobWeinbren and thank you for the PR 🙂

Just a note: the deprecation notice appears if you don't overwrite the importPackage option in your Rollup config while using lit (see Usage with Lit 2). Anyway, since the stable version of Lit2 has been released I guess it makes sense to switch the default imported package to lit like you're proposing.

umbopepato commented 2 years ago

Your changes are now live in v2.0.0, thank you @JacobWeinbren!