@plumeria/compiler 18.3.18 → 18.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -296,6 +296,7 @@ function extractStylesFromExpression(expression, ctx) {
|
|
|
296
296
|
}
|
|
297
297
|
function compileCSS(options) {
|
|
298
298
|
const { include, exclude, cwd = process.cwd(), styleProp = utils_1.DEFAULT_STYLE_PROP, } = options;
|
|
299
|
+
const propertyPolicy = (0, utils_1.resolvePropertyPolicy)(options);
|
|
299
300
|
const allSheets = new Set();
|
|
300
301
|
const files = rs.globSync(include, {
|
|
301
302
|
cwd,
|
|
@@ -312,6 +313,7 @@ function compileCSS(options) {
|
|
|
312
313
|
tsx: true,
|
|
313
314
|
target: 'es2022',
|
|
314
315
|
});
|
|
316
|
+
(0, utils_1.assertPropertyPolicy)(ast, propertyPolicy, resourcePath);
|
|
315
317
|
const leadingLen = (0, utils_2.getLeadingCommentLength)(source);
|
|
316
318
|
const sourceBuffer = Buffer.from(source, 'utf-8');
|
|
317
319
|
const leadingBytes = Buffer.byteLength(source.slice(0, leadingLen), 'utf-8');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/compiler",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.4.0",
|
|
4
4
|
"description": "Plumeria swc based compiler for statically extracting css",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"dist/"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@plumeria/utils": "^18.
|
|
24
|
+
"@plumeria/utils": "^18.4.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@rust-gear/glob": "1.1.1",
|
|
28
28
|
"@swc/core": "1.15.47",
|
|
29
|
-
"zss-engine": "2.
|
|
29
|
+
"zss-engine": "2.8.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public",
|