node-sass Package Importer

JSON →
library 5.3.3 ·javascript
verified May 27, 2026

node-sass-package-importer is a custom importer for node-sass designed to streamline the process of importing Sass files from `node_modules` directories within your Sass code. It simplifies path management by allowing module imports using a `~` prefix, such as `@import '~bootstrap';`, eliminating the need for complex relative paths. The package currently maintains a stable version of 5.3.3 and is part of a larger `node-sass-magic-importer` monorepo. It offers flexible configuration options, including customizable `packageKeys` to define which entries in a `package.json` file should be considered for import resolution (e.g., 'sass', 'scss', 'main'), and a configurable `packagePrefix`. Key differentiators include its robust path resolving logic for both root modules and specific files within modules, support for multi-level `node_modules` directories (since v5.2.0), and the ability to glob import empty directories (since v5.1.0). Recent updates address TypeScript resolution and shared context issues in Webpack. While `node-sass` itself is in maintenance, this package provides crucial functionality for projects still relying on it, offering a consistent and manageable way to handle third-party Sass dependencies.

total hits 20
actors 7 distinct systems
last hit 1d ago human
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1
Humans
5

top countries 🇺🇸 United States · VN · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany