@vizejs/native 0.310.0 → 0.312.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.
Files changed (2) hide show
  1. package/index.d.ts +16 -0
  2. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -93,6 +93,15 @@ export interface BatchCompileOptionsNapi {
93
93
  includeMacroArtifacts?: boolean;
94
94
  /** Include template/style/script content hashes (for HMR). Default OFF. */
95
95
  includeHashes?: boolean;
96
+ /**
97
+ * Emit a Source Map v3 document per file (`map`). Default OFF.
98
+ *
99
+ * The pre-compile batch is the path every build takes, so a production
100
+ * build with `build.sourcemap` on has to be able to ask for maps here or
101
+ * the bundle's maps point at the virtual module instead of the `.vue`
102
+ * file (#3399).
103
+ */
104
+ includeSourceMap?: boolean;
96
105
  }
97
106
 
98
107
  export interface BatchCompileResultNapi {
@@ -118,6 +127,9 @@ export interface BatchFileInputNapi {
118
127
  export interface BatchFileResultNapi {
119
128
  path: string;
120
129
  code: string;
130
+ /** Source Map v3 document (JSON) describing `code`, present only when
131
+ * `includeSourceMap` was requested and a line could be anchored (#3399). */
132
+ map?: string;
121
133
  css?: string;
122
134
  scopeId: string;
123
135
  hasScoped: boolean;
@@ -919,6 +931,10 @@ export interface SfcCompileOptionsNapi {
919
931
 
920
932
  export interface SfcCompileResultNapi {
921
933
  code: string;
934
+ /** Source Map v3 document (JSON) describing `code`, present only when
935
+ * `sourceMap` was requested and at least one authored line could be
936
+ * anchored (#3399). Its single `sources` entry is the authored `.vue` path. */
937
+ map?: string;
922
938
  css?: string;
923
939
  errors: Array<string>;
924
940
  warnings: Array<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/native",
3
- "version": "0.310.0",
3
+ "version": "0.312.0",
4
4
  "description": "High-performance Vue.js compiler - Native bindings",
5
5
  "keywords": [
6
6
  "compiler",
@@ -35,14 +35,14 @@
35
35
  "@napi-rs/cli": "3.6.2"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@vizejs/native-darwin-arm64": "0.310.0",
39
- "@vizejs/native-darwin-x64": "0.310.0",
40
- "@vizejs/native-linux-arm64-gnu": "0.310.0",
41
- "@vizejs/native-linux-arm64-musl": "0.310.0",
42
- "@vizejs/native-linux-x64-gnu": "0.310.0",
43
- "@vizejs/native-linux-x64-musl": "0.310.0",
44
- "@vizejs/native-win32-arm64-msvc": "0.310.0",
45
- "@vizejs/native-win32-x64-msvc": "0.310.0"
38
+ "@vizejs/native-darwin-arm64": "0.312.0",
39
+ "@vizejs/native-darwin-x64": "0.312.0",
40
+ "@vizejs/native-linux-arm64-gnu": "0.312.0",
41
+ "@vizejs/native-linux-arm64-musl": "0.312.0",
42
+ "@vizejs/native-linux-x64-gnu": "0.312.0",
43
+ "@vizejs/native-linux-x64-musl": "0.312.0",
44
+ "@vizejs/native-win32-arm64-msvc": "0.312.0",
45
+ "@vizejs/native-win32-x64-msvc": "0.312.0"
46
46
  },
47
47
  "napi": {
48
48
  "binaryName": "vize-vitrine",