@plumeria/turbopack-loader 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 +4 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -63,6 +63,8 @@ async function generateProductionCss(virtualFilePath, options) {
|
|
|
63
63
|
exclude: options.exclude ?? DEFAULT_EXCLUDE,
|
|
64
64
|
cwd: process.cwd(),
|
|
65
65
|
styleProp: options.styleProp ?? utils_1.DEFAULT_STYLE_PROP,
|
|
66
|
+
withoutLogicalProperties: options.withoutLogicalProperties,
|
|
67
|
+
withoutPhysicalProperties: options.withoutPhysicalProperties,
|
|
66
68
|
});
|
|
67
69
|
const optimized = await (0, utils_1.optimizer)(css);
|
|
68
70
|
const tempPath = `${virtualFilePath}.${process.pid}.tmp`;
|
|
@@ -264,6 +266,7 @@ async function loader(source) {
|
|
|
264
266
|
(typeof this.query === 'object' ? this.query : undefined) ??
|
|
265
267
|
{};
|
|
266
268
|
const styleProp = loaderOptions.styleProp ?? utils_1.DEFAULT_STYLE_PROP;
|
|
269
|
+
const propertyPolicy = (0, utils_1.resolvePropertyPolicy)(loaderOptions);
|
|
267
270
|
const resourcePath = this.resourcePath;
|
|
268
271
|
const isProduction = process.env.NODE_ENV === 'production';
|
|
269
272
|
const VIRTUAL_FILE_PATH = path.resolve(__dirname, '..', 'zero-virtual.css');
|
|
@@ -279,6 +282,7 @@ async function loader(source) {
|
|
|
279
282
|
tsx: true,
|
|
280
283
|
target: 'es2022',
|
|
281
284
|
});
|
|
285
|
+
(0, utils_1.assertPropertyPolicy)(ast, propertyPolicy, resourcePath);
|
|
282
286
|
const leadingLen = (0, utils_1.getLeadingCommentLength)(source);
|
|
283
287
|
const sourceBuffer = Buffer.from(source, 'utf-8');
|
|
284
288
|
const leadingBytes = Buffer.byteLength(source.slice(0, leadingLen), 'utf-8');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/turbopack-loader",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.4.0",
|
|
4
4
|
"description": "Plumeria Turbopack-loader",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"zero-virtual.css"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@plumeria/compiler": "^18.
|
|
33
|
-
"@plumeria/utils": "^18.
|
|
32
|
+
"@plumeria/compiler": "^18.4.0",
|
|
33
|
+
"@plumeria/utils": "^18.4.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@swc/core": "1.15.47",
|
|
37
|
-
"zss-engine": "2.
|
|
37
|
+
"zss-engine": "2.8.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public",
|