Closed WUSO01 closed 2 years ago
Can you see if the decorator settings here work? This is what we use for testing: https://github.com/Polymer/lit-element/blob/master/.babelrc#L3.
If you'd like additional help debugging the issue, it'd be great if you could provide a minimal runnable reproduction. A simple github repo would be fine.
Hope that helps.
Closing due to age. Please open a new issue with a reproduction if the problem still exists. Thanks.
Description
I wirted lit-element with typescript, i use webpack and babel compile my project. When i use babel-loader,
console.log(@query('xxx'))
is undefined, but i find ts-loader won't occur this problem.This is the minimalist demo:
index.ts:
webapck.config.js:
babel.config.json:
Demo source file
The issues: