Skip to content

Support sourcemap #12

Description

@eight04

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions