Mister-Hope / gulp5-sass-plugin

Sass plugin for gulp
MIT License
39 stars 3 forks source link

[Bug] Does not work at all, wrong import statement for cjs library picocolor #861

Closed MajPay closed 1 day ago

MajPay commented 1 week ago

Describe the bug The basic example (see below) does not work. Picocolor can not be imported form the gulp-5-sass-plugin index.js file

SyntaxError: Named export 'underline' not found. The requested module 'picocolors' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using:

import pkg from 'picocolors';

You should change the import statement i guess

aredridel commented 5 days ago

Yeah, same here. Probably works when transpiled as in testing, but not with the native node loader.

Mister-Hope commented 1 day ago

Fixed in v2.0.4