generated from alecodes/base-template
Compare commits
No commits in common. "3752f58d1234058f249ac92dc91d04600e01c6a5" and "cf0ea28fa1710cc05c236ea3cb9cfc1a35d3febb" have entirely different histories.
3752f58d12
...
cf0ea28fa1
3 changed files with 3 additions and 8 deletions
|
|
@ -2,12 +2,6 @@
|
|||
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
|
||||
|
||||
- - -
|
||||
## v0.1.3 - 2025-04-11
|
||||
#### Bug Fixes
|
||||
- add support for sass extension - (b032ab7) - aleidk
|
||||
|
||||
- - -
|
||||
|
||||
## v0.1.2 - 2025-02-19
|
||||
#### Bug Fixes
|
||||
- change package to scope to prevent resolution issues between registries - (2ca1ee5) - aleidk
|
||||
|
|
|
|||
3
index.ts
3
index.ts
|
|
@ -16,7 +16,7 @@ const sassPlugin: BunPlugin = {
|
|||
async setup(build: PluginBuilder) {
|
||||
const sass = await import("sass");
|
||||
|
||||
build.onLoad({ filter: /\.scss|sass$/ }, async ({ path }) => {
|
||||
build.onLoad({ filter: /\.scss$/ }, async ({ path }) => {
|
||||
const result = await sass.compileAsync(path, {
|
||||
importers: [nodeModuleImporter],
|
||||
});
|
||||
|
|
@ -30,3 +30,4 @@ const sassPlugin: BunPlugin = {
|
|||
};
|
||||
|
||||
export default sassPlugin;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@alecodes/bun-plugin-sass",
|
||||
"version": "0.1.3",
|
||||
"version": "0.1.2",
|
||||
"module": "index.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue