This repository demonstrates a bug in Stencil v3.2.1 where using the
dist-hydrate-script
output target results in the following warning
when building the project:
[ WARN ] Bundling Warning SOURCEMAP_ERROR
Error when using sourcemap for reporting an error: Can't resolve original location of error.
- Clone the repository locally
npm ci
npm run build
- Observe the following output:
> [email protected] build
> stencil build --docs
[58:06.7] @stencil/core
[58:06.8] v3.2.1 🎙
[58:07.6] build, dist-hydrate-script-sourcemap-warn, prod mode, started ...
[58:07.6] transpile started ...
[58:08.6] transpile finished in 938 ms
[58:08.6] generate custom elements + source maps started ...
[58:08.6] generate hydrate app started ...
[58:08.9] generate custom elements + source maps finished in 377 ms
[58:08.9] generate hydrate app finished in 378 ms
[ WARN ] Bundling Warning SOURCEMAP_ERROR
Error when using sourcemap for reporting an error: Can't resolve original location of error.
[58:08.9] build finished in 1.33 s