Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mangle] Fails to fetch locale resources in mangled sources #78

Open
t2ym opened this issue Mar 20, 2019 · 0 comments
Open

[mangle] Fails to fetch locale resources in mangled sources #78

t2ym opened this issue Mar 20, 2019 · 0 comments

Comments

@t2ym
Copy link
Owner

t2ym commented Mar 20, 2019

[mangle] Fails to fetch locale resources in mangled sources

Root Cause

  • When the class name of a target element is mangled, is property cannot provide the correct custom element name and thus the fetching fails

Workarounds

  • Option # 1: Provide explicit static get is() { return 'my-custom-element-name'; }
  • Option # 2: Avoid mangling class names
    • Enable keep_classnames (terser), keepClassName (babel-minify) options

Notes

  • Feasibility of mangling has NOT been verified well
  • Mangling should be avoided for now if possible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant