This repository demonstrates issues with source maps in Stencil Core.
Install all dependencies and execute stencil build
npm inpm exec stencil buildOpen any dist file for example: dist/esm/test-component.entry.js
The source map references will be doubled. In this minimal example the references are the same, but in bigger projects it can happen that they different when de bundler decides to combine multiple components.
//# sourceMappingURL=button.error-hint.icon-alert-circle.icon-eye.icon-eye-off.input.spinner.entry.cjs.js.map<-- non existent//# sourceMappingURL=button_7.entry.js.map<-- correct one
Open any dist map file for example: dist/esm/test-component.entry.js.map
The map.sources property will start with a relative path, for example: src/components, if resolved from the current map file the file will not be found. The correct path is ../../src/components.