@plumeria/turbopack-loader 18.3.14 → 18.3.15

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 +7 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -289,6 +289,13 @@ async function loader(source) {
289
289
  mergedCreateTable[rootId] !== undefined ||
290
290
  mergedVariantsTable[rootId] !== undefined);
291
291
  if (!isPlumeriaStyle) {
292
+ const origin = rootId ? localImports[rootId] : undefined;
293
+ const failure = origin
294
+ ? (0, utils_1.resolveFileError)(origin.actualPath, origin.importedName)
295
+ : undefined;
296
+ if (failure) {
297
+ throwCompilationError(`Plumeria: ${failure.message} (${path.basename(failure.filePath)})`);
298
+ }
292
299
  throwCompilationError(`Plumeria: Dynamic or unresolvable style object "${getSource(node)}" is not supported.`, node);
293
300
  }
294
301
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/turbopack-loader",
3
- "version": "18.3.14",
3
+ "version": "18.3.15",
4
4
  "description": "Plumeria Turbopack-loader",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -29,8 +29,8 @@
29
29
  "zero-virtual.css"
30
30
  ],
31
31
  "dependencies": {
32
- "@plumeria/compiler": "^18.3.14",
33
- "@plumeria/utils": "^18.3.14"
32
+ "@plumeria/compiler": "^18.3.15",
33
+ "@plumeria/utils": "^18.3.15"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@swc/core": "1.15.47",