@plumeria/turbopack-loader 18.2.3 → 18.2.5

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -4
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -258,7 +258,9 @@ async function loader(source) {
258
258
  const markStylePropApplied = (name, at) => {
259
259
  const owner = components.find((c) => at.span.start >= c.node.span.start &&
260
260
  at.span.start <= c.node.span.end);
261
- appliedStyleProps.add(`${owner ? owner.name : '*'}:${name}`);
261
+ if (owner) {
262
+ appliedStyleProps.add(`${owner.name}:${name}`);
263
+ }
262
264
  };
263
265
  const extractedSheets = [];
264
266
  const addSheet = (sheet) => {
@@ -2070,8 +2072,7 @@ async function loader(source) {
2070
2072
  for (const { name, node } of components) {
2071
2073
  const props = scannedTables.componentPropsTable?.[`${resourcePath}-${name}`];
2072
2074
  for (const propName of Object.keys(props ?? {})) {
2073
- if (appliedStyleProps.has(`${name}:${propName}`) ||
2074
- appliedStyleProps.has(`*:${propName}`)) {
2075
+ if (appliedStyleProps.has(`${name}:${propName}`)) {
2075
2076
  continue;
2076
2077
  }
2077
2078
  throwCompilationError(`Plumeria: "${propName}" is a style received through a prop but is never applied ` +
@@ -2166,7 +2167,7 @@ async function loader(source) {
2166
2167
  }
2167
2168
  }
2168
2169
  if (hasNewRule) {
2169
- const nextCss = (0, utils_1.orderMediaLast)(Array.from(ruleSet)).join('\n\n') + '\n';
2170
+ const nextCss = await (0, utils_1.optimizer)(Array.from(ruleSet).join('\n\n'));
2170
2171
  fs.writeFileSync(VIRTUAL_FILE_PATH, nextCss, 'utf-8');
2171
2172
  }
2172
2173
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/turbopack-loader",
3
- "version": "18.2.3",
3
+ "version": "18.2.5",
4
4
  "description": "Plumeria Turbopack-loader",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -22,12 +22,12 @@
22
22
  "zero-virtual.css"
23
23
  ],
24
24
  "dependencies": {
25
- "@plumeria/compiler": "^18.2.3",
26
- "@plumeria/utils": "^18.2.3"
25
+ "@plumeria/compiler": "^18.2.5",
26
+ "@plumeria/utils": "^18.2.5"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@swc/core": "1.15.47",
30
- "zss-engine": "2.3.2"
30
+ "zss-engine": "2.4.1"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public",