Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sourcemap file isn't included in NPM distribution #124

Open
nightpool opened this issue Dec 9, 2021 · 0 comments
Open

sourcemap file isn't included in NPM distribution #124

nightpool opened this issue Dec 9, 2021 · 0 comments

Comments

@nightpool
Copy link

nightpool commented Dec 9, 2021

When loading the package from unpkg, the source map doesn't get loaded. This seems to be because the jso.js dist file references //# sourceMappingURL=jso.js.map, but jso.js.map is excluded from the uploaded NPM package—potentially because the package.json files array only includes src and not dist? I'm not 100% sure.

x = import('https://unpkg.com/jso'); Promise {<pending>} DevTools failed to load source map: Could not load content for https://unpkg.com/jso@4.1.1/dist/jso.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant