@master/css-compiler 2.0.0-rc.83 → 2.0.0-rc.85

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/README.md CHANGED
@@ -22,11 +22,11 @@ Use the root entry in Node environments when CSS imports and filesystem dependen
22
22
 
23
23
  ```ts
24
24
  import {
25
- compileCSS,
26
- compileCSSFile,
27
- compileCSSManifest,
28
- compileCSSManifestFile,
29
- compileProjectManifest,
25
+ compileCSS,
26
+ compileCSSFile,
27
+ compileCSSManifest,
28
+ compileCSSManifestFile,
29
+ compileProjectManifest,
30
30
  } from '@master/css-compiler'
31
31
  ```
32
32
 
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ type CompileCSSManifestSourceOptions = CompileCSSOptions$1 & {
22
22
  };
23
23
  interface CompileCSSManifestResult extends Omit<CompileCSSResult$1, 'manifestInput'> {
24
24
  manifest: MasterCSSManifest;
25
+ resolutionManifest: MasterCSSManifest;
25
26
  directives: CompileCSSResult$1;
26
27
  }
27
28
  interface CompileProjectManifestResult extends CompileCSSManifestResult {
package/dist/index.js CHANGED
@@ -255,6 +255,7 @@ function toCompileCSSManifestResult(result, options = {}) {
255
255
  ...directiveData,
256
256
  dependencies,
257
257
  manifest: lowerResult.manifest,
258
+ resolutionManifest: lowerResult.resolutionManifest,
258
259
  warnings,
259
260
  generatedCSS,
260
261
  css,
@@ -338,9 +339,11 @@ function compileProjectManifest(entries, options = {}) {
338
339
  if (entryGeneratedCSS) generatedCSS.push(entryGeneratedCSS);
339
340
  if (manifestResult.css) css.push(manifestResult.css);
340
341
  }
342
+ const resolvedManifest = manifest || createMasterCSSManifest();
341
343
  return {
342
344
  entries,
343
- manifest: manifest || createMasterCSSManifest(),
345
+ manifest: resolvedManifest,
346
+ resolutionManifest: resolvedManifest,
344
347
  dependencies,
345
348
  extractionPolicy,
346
349
  classNames,
@@ -12,6 +12,7 @@ interface LowerCSSDirectivesOptions {
12
12
  interface LowerCSSDirectivesResult {
13
13
  input: CSSDirectiveManifestInput;
14
14
  manifest: MasterCSSManifest;
15
+ resolutionManifest: MasterCSSManifest;
15
16
  warnings: string[];
16
17
  generatedCSS: string;
17
18
  }
@@ -745,6 +745,7 @@ function lowerCSSDirectives(input, options = {}) {
745
745
  baseManifest: options.baseManifest,
746
746
  diagnostics
747
747
  })),
748
+ resolutionManifest: initialRefreshManifest,
748
749
  warnings,
749
750
  generatedCSS
750
751
  };
package/package.json CHANGED
@@ -50,15 +50,15 @@
50
50
  "csstype": "^3.2.3",
51
51
  "lightningcss": "^1.32.0",
52
52
  "lightningcss-wasm": "^1.32.0",
53
- "@master/css-engine": "^2.0.0-rc.83",
54
- "@master/css-lexer": "^2.0.0-rc.83",
55
- "@master/css-schema": "^2.0.0-rc.83"
53
+ "@master/css-engine": "^2.0.0-rc.85",
54
+ "@master/css-lexer": "^2.0.0-rc.85",
55
+ "@master/css-schema": "^2.0.0-rc.85"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/css-tree": "^2.3.11",
59
- "@master/css-preset": "^2.0.0-rc.83"
59
+ "@master/css-preset": "^2.0.0-rc.85"
60
60
  },
61
- "version": "2.0.0-rc.83",
61
+ "version": "2.0.0-rc.85",
62
62
  "scripts": {
63
63
  "build": "tsdown --config ../../shared/tsdown-package.config.ts",
64
64
  "dev": "tsdown --config ../../shared/tsdown-package.config.ts --watch",