LitElement works just fine with webpack. The only thing you need to do is configure it to also compile it's source.
In most webpack configs you will have something like this
module: {
rules: [
{
test: /\.js$/,
use: "babel-loader",
exclude: /node_modules/
}
]
},
But if you replace it with something like this
module: {
rules: [
{
test: /\.js$/,
use: "babel-loader",
exclude: (modulePath) => {
return (
/node_modules/.test(modulePath) &&
!/node_modules\/lit-html/.test(modulePath) &&
!/node_modules\/lit-element/.test(modulePath)
)
},
}
]
},
Then it will also be transpiled and should work just fine.