From 05295b121e2b615679edc29d0167c39a77a7eb35 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 17 Feb 2021 22:49:48 +0100 Subject: [PATCH] Don't ignore node_modules --- README.md | 4 ++++ index.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 61c4289..aa8009e 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,10 @@ Removes the ICSS handling hook, essentially disabling the module. ## Changelog +### v1.1.0 (February 17, 2021) + +- No longer ignores CSS imports in node_modules + ### v1.0.0 (February 17, 2021) - Now actually properly validates arguments, with useful error messages. diff --git a/index.js b/index.js index 6202b9d..426f390 100644 --- a/index.js +++ b/index.js @@ -105,9 +105,10 @@ module.exports = function registerICSS(_options) { let extensions = options.extensions; + // TODO: Figure out a way to allow specifying custom PostCSS (and other transpilation?) configs from within a package let unhook = pirates.addHook( (code, fullPath) => process(fullPath, code), - { exts: extensions } + { exts: extensions, ignoreNodeModules: false } ); return unhook;