Skip to content

Add a default export for Node.js backwards compatibility #2008

@nex3

Description

@nex3

Node.js allows ESM modules to import CJS files as though they used a default export, which means there's some amount of existing ESM usage of the sass package via import sass from 'sass'. However, with the browser support changes that landed in 1.63.0, we started providing explicit ESM exports that only work with our desired syntax of import * as sass from 'sass'. We should:

Metadata

Metadata

Assignees

No one assigned

    Labels

    JavaScriptIssues particular to the Node.js distributionenhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions