Closed alicewriteswrongs closed 4 months ago
--strictNullChecks
error reportTypechecking with --strictNullChecks
resulted in 1080 errors on this branch.
That's the same number of errors on main, so at least we're not creating new ones!
There are 15 unused exports on this PR. That's the same number of errors on main, so at least we're not creating new ones!
Download the tarball here: https://github.com/ionic-team/stencil/actions/runs/9269810431/artifacts/1544211247
If your browser saves files to ~/Downloads
you can install it like so:
unzip -d ~/Downloads ~/Downloads/stencil-core-4.18.2-dev.1716901330.409504a.tgz.zip && npm install ~/Downloads/stencil-core-4.18.2-dev.1716901330.409504a.tgz
closing in favor of #5792
This adds some checks when a Stencil component is booting up that will re-use a shadow root if the host element already has one, instead of just calling
this.attachShadow
in all cases.Additionally, Stencil's virtual DOM will now cleanly take over any elements which are already present in its root element when it first runs. This will allow it to re-use elements that were already created in the shadow root, as well as clean up any stray elements that shouldn't be there.
Together these changes will allow the Stencil runtime to smoothly take over a shadow root which was created via a
<template>
tag in the page's HTML, i.e. via declarative shadow DOM (DSD).NOTE this only enables the Stencil runtime to re-use a shadow root created via DSD, it does not add any support to Stencil for rendering a suitable
<template>...
HTML string.STENCIL-1316
What is the current behavior?
GitHub Issue Number: N/A
What is the new behavior?
Documentation
Does this introduce a breaking change?
Testing
Other information