@roots/bud-build 2024.5.3-7 → 2024.5.5-8
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -6
- package/lib/config/module.js +16 -2
- package/lib/items/index.js +7 -7
- package/package.json +6 -6
- package/src/config/module.ts +18 -2
- package/src/items/index.ts +7 -7
package/README.md
CHANGED
@@ -112,9 +112,3 @@ However, the amount of effort needed to maintain and develop new features and pr
|
|
112
112
|
<a href="https://worksitesafety.ca/careers/">
|
113
113
|
<img src="https://cdn.roots.io/app/uploads/worksite-safety.svg" alt="Worksite Safety" width="200" height="150"/>
|
114
114
|
</a>
|
115
|
-
<a href="https://www.copiadigital.com/">
|
116
|
-
<img src="https://cdn.roots.io/app/uploads/copia-digital.svg" alt="Copia Digital" width="200" height="150"/>
|
117
|
-
</a>
|
118
|
-
<a href="https://www.freave.com/">
|
119
|
-
<img src="https://cdn.roots.io/app/uploads/freave.svg" alt="Freave" width="200" height="150"/>
|
120
|
-
</a>
|
package/lib/config/module.js
CHANGED
@@ -83,10 +83,10 @@ const DEFINED = [
|
|
83
83
|
`json`,
|
84
84
|
`html`,
|
85
85
|
`webp`,
|
86
|
-
`scss-module`,
|
87
|
-
`scss`,
|
88
86
|
`css-module`,
|
89
87
|
`css`,
|
88
|
+
`sass-module`,
|
89
|
+
`sass`,
|
90
90
|
`vue`,
|
91
91
|
`js`,
|
92
92
|
`ts`,
|
@@ -110,6 +110,20 @@ const makeIssuerRuleSet = ({ filter, path, rules }) => {
|
|
110
110
|
test: filter(`pattern.css`),
|
111
111
|
use: rules[`css`].toWebpack?.().use,
|
112
112
|
});
|
113
|
+
rules[`sass-module`]?.toWebpack?.().use &&
|
114
|
+
results.push({
|
115
|
+
exclude: [path(`@src`)],
|
116
|
+
issuer: { not: filter(`pattern.sassModule`) },
|
117
|
+
test: filter(`pattern.sassModule`),
|
118
|
+
use: rules[`sass-module`].toWebpack?.().use,
|
119
|
+
});
|
120
|
+
rules[`sass`]?.toWebpack?.().use &&
|
121
|
+
results.push({
|
122
|
+
exclude: [path(`@src`)],
|
123
|
+
issuer: { not: filter(`pattern.sass`) },
|
124
|
+
test: filter(`pattern.sass`),
|
125
|
+
use: rules[`sass`].toWebpack?.().use,
|
126
|
+
});
|
113
127
|
return results;
|
114
128
|
};
|
115
129
|
const getNoParse = (filter) => filter(`build.module.noParse`, undefined);
|
package/lib/items/index.js
CHANGED
@@ -7,8 +7,8 @@ export const css = async ({ makeItem }) => makeItem({
|
|
7
7
|
loader: `css`,
|
8
8
|
options: { modules: false },
|
9
9
|
}).setOptions(({ hooks: { filter } }) => ({
|
10
|
-
sourceMap: isBoolean(filter(`build.devtool
|
11
|
-
? filter(`build.devtool
|
10
|
+
sourceMap: isBoolean(filter(`build.devtool`))
|
11
|
+
? filter(`build.devtool`)
|
12
12
|
: true,
|
13
13
|
}));
|
14
14
|
/**
|
@@ -17,11 +17,11 @@ export const css = async ({ makeItem }) => makeItem({
|
|
17
17
|
export const cssModule = async ({ makeItem }) => makeItem({
|
18
18
|
ident: `css-module`,
|
19
19
|
loader: `css`,
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
sourceMap: isBoolean(
|
24
|
-
?
|
20
|
+
}).setOptions(({ build, hooks: { filter } }) => ({
|
21
|
+
importLoaders: build.getRule(`css-module`).getUse().length - 2,
|
22
|
+
modules: { namedExport: false },
|
23
|
+
sourceMap: isBoolean(filter(`build.devtool`))
|
24
|
+
? filter(`build.devtool`)
|
25
25
|
: true,
|
26
26
|
}));
|
27
27
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@roots/bud-build",
|
3
|
-
"version": "2024.5.
|
3
|
+
"version": "2024.5.5-8",
|
4
4
|
"description": "bud.js core module",
|
5
5
|
"engines": {
|
6
6
|
"node": ">=16"
|
@@ -169,14 +169,14 @@
|
|
169
169
|
"types": "./lib/index.d.ts",
|
170
170
|
"module": "./lib/index.js",
|
171
171
|
"devDependencies": {
|
172
|
-
"@roots/bud-api": "2024.5.
|
173
|
-
"@roots/bud-hooks": "2024.5.
|
172
|
+
"@roots/bud-api": "2024.5.5-8",
|
173
|
+
"@roots/bud-hooks": "2024.5.5-8",
|
174
174
|
"@skypack/package-check": "0.2.2",
|
175
|
-
"@types/node": "20.
|
175
|
+
"@types/node": "20.12.8"
|
176
176
|
},
|
177
177
|
"dependencies": {
|
178
|
-
"@roots/bud-framework": "2024.5.
|
179
|
-
"@roots/bud-support": "2024.5.
|
178
|
+
"@roots/bud-framework": "2024.5.5-8",
|
179
|
+
"@roots/bud-support": "2024.5.5-8",
|
180
180
|
"tslib": "2.6.2"
|
181
181
|
},
|
182
182
|
"volta": {
|
package/src/config/module.ts
CHANGED
@@ -103,10 +103,10 @@ const DEFINED = [
|
|
103
103
|
`json`,
|
104
104
|
`html`,
|
105
105
|
`webp`,
|
106
|
-
`scss-module`,
|
107
|
-
`scss`,
|
108
106
|
`css-module`,
|
109
107
|
`css`,
|
108
|
+
`sass-module`,
|
109
|
+
`sass`,
|
110
110
|
`vue`,
|
111
111
|
`js`,
|
112
112
|
`ts`,
|
@@ -134,6 +134,22 @@ const makeIssuerRuleSet = ({filter, path, rules}: Props) => {
|
|
134
134
|
use: rules[`css`].toWebpack?.().use,
|
135
135
|
})
|
136
136
|
|
137
|
+
rules[`sass-module`]?.toWebpack?.().use &&
|
138
|
+
results.push({
|
139
|
+
exclude: [path(`@src`)],
|
140
|
+
issuer: {not: filter(`pattern.sassModule`)},
|
141
|
+
test: filter(`pattern.sassModule`),
|
142
|
+
use: rules[`sass-module`].toWebpack?.().use,
|
143
|
+
})
|
144
|
+
|
145
|
+
rules[`sass`]?.toWebpack?.().use &&
|
146
|
+
results.push({
|
147
|
+
exclude: [path(`@src`)],
|
148
|
+
issuer: {not: filter(`pattern.sass`)},
|
149
|
+
test: filter(`pattern.sass`),
|
150
|
+
use: rules[`sass`].toWebpack?.().use,
|
151
|
+
})
|
152
|
+
|
137
153
|
return results
|
138
154
|
}
|
139
155
|
|
package/src/items/index.ts
CHANGED
@@ -12,8 +12,8 @@ export const css: Factory<Item> = async ({makeItem}) =>
|
|
12
12
|
loader: `css`,
|
13
13
|
options: {modules: false},
|
14
14
|
}).setOptions(({hooks: {filter}}) => ({
|
15
|
-
sourceMap: isBoolean(filter(`build.devtool
|
16
|
-
? filter(`build.devtool
|
15
|
+
sourceMap: isBoolean(filter(`build.devtool`))
|
16
|
+
? filter(`build.devtool`)
|
17
17
|
: true,
|
18
18
|
}))
|
19
19
|
|
@@ -24,11 +24,11 @@ export const cssModule: Factory<Item> = async ({makeItem}) =>
|
|
24
24
|
makeItem({
|
25
25
|
ident: `css-module`,
|
26
26
|
loader: `css`,
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
sourceMap: isBoolean(
|
31
|
-
?
|
27
|
+
}).setOptions(({build, hooks: {filter}}) => ({
|
28
|
+
importLoaders: build.getRule(`css-module`).getUse().length - 2,
|
29
|
+
modules: {namedExport: false},
|
30
|
+
sourceMap: isBoolean(filter(`build.devtool`))
|
31
|
+
? filter(`build.devtool`)
|
32
32
|
: true,
|
33
33
|
}))
|
34
34
|
|