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

Support sourcemap #12

Open
eight04 opened this issue Jan 26, 2022 · 0 comments
Open

Support sourcemap #12

eight04 opened this issue Jan 26, 2022 · 0 comments

Comments

@eight04
Copy link
Collaborator

eight04 commented Jan 26, 2022

We have to implement environment.getSourcemapGenerator. The default implementation in less-node (less-browser doesn't support sourcemap) also depends on source-map:
https://github.com/less/less.js/blob/3f05b5cde6803064bef0ddc837ec1060c9e83635/packages/less/src/less-node/environment.js#L13-L15
Then create less instance via createFromEnvironment:
https://github.com/less/less.js/blob/3f05b5cde6803064bef0ddc837ec1060c9e83635/packages/less/src/less-node/index.js#L5

Maybe we can map source-map to a global variable so that we can mock it with a simpler implementation?

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