lwc icon indicating copy to clipboard operation
lwc copied to clipboard

refactor(template-compiler): move implicit stylesheet import and style token to template compiler

Open jmsjtu opened this issue 4 months ago • 1 comments

Details

Fixes #3931

This will be a breaking change, the compile API now requires the file name, which is used to determine the css imports.

I've also expanded the config to accept namespace and name.

This change updates all the template compiler snapshots and I've separated them into 2 commits;

  • 16d13f39e56d9e4e01d8c78beeb6741af9074584 for the code changes
  • a2b8f7ad94e1d806839d52d4ccc92ea101217f58 for the snapshot updates

Does this pull request introduce a breaking change?

  • 💔 Yes, it does introduce a breaking change.

The @lwc/template-compiler compile function now requires the component's file name when compiling the template.

Does this pull request introduce an observable change?

  • 🔬 Yes, it does include an observable change.

GUS work item

W-15461766

jmsjtu avatar Apr 12 '24 21:04 jmsjtu

I compared the nucleus downstream test failures against the latest commit in master (c7bd1b76051b1b117ca341945cd4e59993b177e9).

There will be a snapshot test failure for @communities/webruntime after this update.

jmsjtu avatar May 14 '24 18:05 jmsjtu