Browse Source

Don't ignore node_modules

master
Sven Slootweg 5 months ago
parent
commit
05295b121e
  1. 4
      README.md
  2. 3
      index.js

4
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.

3
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;

Loading…
Cancel
Save