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

Fix sourceMap support on package #256

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cmdcolin
Copy link

Fixes #240

This is something I have found when publishing my packages to NPM, the src directory is published to NPM which the .map files refer to. There might be some alternative way to embed sourceMap src or something, but this solution has worked for me! Thanks for this package

@cmdcolin
Copy link
Author

note that another alternative is just not doing any source map for this package. it may be ok. in that case, remove sourceMap:true from tsconfig https://github.com/hustcc/timeago.js/blob/master/tsconfig.json#L8

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

Successfully merging this pull request may close these issues.

.js.map source map parsing warnings in Webpack source-map-loader
1 participant