first commit

This commit is contained in:
Alexander Navarro 2025-04-11 16:01:28 -04:00
commit b23be55d42
838 changed files with 730684 additions and 0 deletions

32
node_modules/@alecodes/bun-plugin-sass/index.ts generated vendored Normal file
View file

@ -0,0 +1,32 @@
import type { BunPlugin, PluginBuilder } from "bun";
import type { FileImporter } from "sass";
const nodeModuleImporter: FileImporter<"async"> = {
findFileUrl(url: string) {
if (url.startsWith("@")) {
return new URL(import.meta.resolve(url));
}
return null;
},
};
const sassPlugin: BunPlugin = {
name: "Sass Loader",
async setup(build: PluginBuilder) {
const sass = await import("sass");
build.onLoad({ filter: /\.scss|sass$/ }, async ({ path }) => {
const result = await sass.compileAsync(path, {
importers: [nodeModuleImporter],
});
return {
loader: "css",
contents: result.css,
};
});
},
};
export default sassPlugin;