Skip to content

ESBuild plugin chaining

Raimondo Mancino edited this page May 22, 2022 · 1 revision

All onResolve() and onLoad() steps are processed in the squirrelnetwork:sass-modules-plugin nsamespace.

You can use this one to filter out the messages.

In particular, onResolve() will put this data in the pluginData object:

{ importResolver: resolver // 0 for Bundle, 1 for Inline, 2 for File
, loader: '' // the esbuild's loader to use
}
Clone this wiki locally