https://github.com/rwaskiewicz/stencil-dist-hydrate-script-sourcemap-warn
https://github.com/rwaskiewicz/stencil-dist-hydrate-script-sourcemap-warn
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/rwaskiewicz/stencil-dist-hydrate-script-sourcemap-warn
- Owner: rwaskiewicz
- License: mit
- Created: 2023-04-12T17:49:53.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-12T17:58:48.000Z (about 3 years ago)
- Last Synced: 2025-03-26T23:03:40.883Z (over 1 year ago)
- Language: TypeScript
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## Overview
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.
```
## Reproducing with this Repo
1. Clone the repository locally
2. `npm ci`
3. `npm run build`
4. Observe the following output:
```
> dist-hydrate-script-sourcemap-warn@0.0.1 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
```