@plumeria/compiler 18.3.10 → 18.3.11

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 +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -241,7 +241,8 @@ function compileCSS(options) {
241
241
  });
242
242
  const scannedTables = (0, utils_1.scanAll)();
243
243
  const processFile = (filePath) => {
244
- const source = fs.readFileSync(filePath, 'utf-8');
244
+ const resourcePath = path.resolve(cwd, filePath);
245
+ const source = fs.readFileSync(resourcePath, 'utf-8');
245
246
  const extractedSheets = [];
246
247
  const ast = (0, core_1.parseSync)(source, {
247
248
  syntax: 'typescript',
@@ -253,7 +254,6 @@ function compileCSS(options) {
253
254
  const leadingBytes = Buffer.byteLength(source.slice(0, leadingLen), 'utf-8');
254
255
  const baseByteOffset = ast.span.start - leadingBytes;
255
256
  const localConsts = (0, utils_1.collectLocalConsts)(ast);
256
- const resourcePath = path.resolve(cwd, filePath);
257
257
  const importMap = {};
258
258
  const keyframesImportMap = {};
259
259
  const viewTransitionImportMap = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/compiler",
3
- "version": "18.3.10",
3
+ "version": "18.3.11",
4
4
  "description": "Plumeria swc based compiler for statically extracting css",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "dist/"
22
22
  ],
23
23
  "dependencies": {
24
- "@plumeria/utils": "^18.3.10"
24
+ "@plumeria/utils": "^18.3.11"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@rust-gear/glob": "1.1.1",