-
Notifications
You must be signed in to change notification settings - Fork 60
The sources
field in the sourcemap seems invalid
#32
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
Comments
+1 This is extremely important |
It seems to be a known issue: rollup/rollup#4248 As a workaround, you can use the export default {
input: `src/index.ts`,
output: [
{
file: pkg.main,
name: pkg.name,
format: 'umd',
banner,
sourcemap: true,
sourcemapPathTransform: (sourcePath) => {
return sourcePath.substring('../'.length);
},
},
[...]
} This produces Update: this does not work, as |
This commit contains two changes: - the `src/index.ts` file is now included in the published package - the path in the sourcemap files is now valid Interestingly, the path is already valid in the `dist/lib/index.js.map` file, due to the additional `lib/` directory. Related: niklasvh#32
The "base64-arraybuffer" package has been temporarily forked to [1], until changes are merged upstream. [1]: https://github.com/socketio/base64-arraybuffer Related: - niklasvh/base64-arraybuffer#32 - socketio/socket.io-client#1520 - socketio/socket.io-website#313 - socketio/socket.io#4209
If anyone is interested, we went ahead and forked the project: https://github.com/socketio/base64-arraybuffer It is published as There are two additional commits: We will revert back to the original package once the changes are merged here. Thanks! |
Sorry for the delay. This has been fixed in 1.0.2 |
It seems there is still an issue with the sourcemap file in version With With It seems the
Though that may be a bug from the |
Hi! It seems the
sources
field in the sourcemapbase64-arraybuffer.es5.js.map
is invalid:It should be
../src/index.ts
I think.Not sure why though.
Related: socketio/socket.io-client#1520
The text was updated successfully, but these errors were encountered: