fix: add support for sass extension

This commit is contained in:
Alexander Navarro 2025-04-11 13:23:10 -04:00
parent cf0ea28fa1
commit b032ab7cd0

View file

@ -16,7 +16,7 @@ const sassPlugin: BunPlugin = {
async setup(build: PluginBuilder) {
const sass = await import("sass");
build.onLoad({ filter: /\.scss$/ }, async ({ path }) => {
build.onLoad({ filter: /\.scss|sass$/ }, async ({ path }) => {
const result = await sass.compileAsync(path, {
importers: [nodeModuleImporter],
});
@ -30,4 +30,3 @@ const sassPlugin: BunPlugin = {
};
export default sassPlugin;