Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compiler): sourcemap errors for dist-custom-elements + dist-hydra…
…te-script (#4527) this commit fixes an issue where a stencil project that use both the `dist-custom-elements` and `dist-hydrate-script` output targets would see the following error when building their project (with sourcemaps enabled): ``` [ WARN ] Bundling Warning SOURCEMAP_ERROR Error when using sourcemap for reporting an error: Can't resolve original location of error. ``` this commit resolves this error by ensuring the `HTMLElement` core runtime API used by `dist-custom-elements` no longer interferese with the generated code for `dist-hydrate-script`. this is accomplished by using the output-target-specific runtime api slots introduced in #4200. this prevents the `HTMLElement` import from polluting the sourcemaps/source used in the `dist-hydrate-script` target
- Loading branch information