Skip to content

Expose importer in resolve method #131

@intrnl

Description

@intrnl

The resolve method should be given the filename that triggered the resolve, this is necessary especially for nested imports where the file could be located somewhere else.

postcssModules({
  resolve (id, from) {
    return path.resolve(from, id);
  },
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions