Skip to content

sourcemap of import not served/deployed #832

Open
@declann

Description

@declann

Hi,

Really liking playing around with Framework, congrats on an awesome release!

We might like sourcemaps to go out of fashion(?) but I generate ESM and keep a sourcemap.

I'm importing that ESM using a regular import:

import * as model from './cul/calcs_esm/cul_scope_0.js'

The file ends with //# sourceMappingURL=cul_scope_0.js.map: a reference to the sourcemap file, but because this file isn't deployed (to dist or to observablehq.cloud) or served (with npm run dev), then it isn't available to devtools - see error:

image

Should/can Framework detect and serve sourcemaps?

On Quarto I include sourcemap files as a resource and they gets served - this could be a workaround, but might need to be a more particular one given Frameworks directory structure (_file, _import etc.)

Thanks!

Declan

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions