@vue/compiler-sfc 3.2.9 → 3.2.13
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/dist/compiler-sfc.cjs.js +15525 -973
- package/dist/compiler-sfc.d.ts +15 -6
- package/dist/compiler-sfc.esm-browser.js +17300 -29826
- package/package.json +17 -18
package/dist/compiler-sfc.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ import { Result } from 'postcss';
|
|
|
17
17
|
import { RootNode } from '@vue/compiler-core';
|
|
18
18
|
import { shouldTransform as shouldTransformRef } from '@vue/ref-transform';
|
|
19
19
|
import { SourceLocation } from '@vue/compiler-core';
|
|
20
|
-
import { Statement } from '@babel/types';
|
|
21
20
|
import { transform as transformRef } from '@vue/ref-transform';
|
|
22
21
|
import { transformAST as transformRefAST } from '@vue/ref-transform';
|
|
23
22
|
import { walk } from 'estree-walker';
|
|
@@ -71,7 +70,7 @@ declare interface CSSModulesOptions {
|
|
|
71
70
|
hashPrefix?: string;
|
|
72
71
|
localsConvention?: 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly';
|
|
73
72
|
exportGlobals?: boolean;
|
|
74
|
-
globalModulePaths?:
|
|
73
|
+
globalModulePaths?: RegExp[];
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
export { extractIdentifiers }
|
|
@@ -140,8 +139,14 @@ export declare interface SFCScriptBlock extends SFCBlock {
|
|
|
140
139
|
type: 'script';
|
|
141
140
|
setup?: string | boolean;
|
|
142
141
|
bindings?: BindingMetadata;
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
/**
|
|
143
|
+
* import('\@babel/types').Statement
|
|
144
|
+
*/
|
|
145
|
+
scriptAst?: any[];
|
|
146
|
+
/**
|
|
147
|
+
* import('\@babel/types').Statement
|
|
148
|
+
*/
|
|
149
|
+
scriptSetupAst?: any[];
|
|
145
150
|
}
|
|
146
151
|
|
|
147
152
|
export declare interface SFCScriptCompileOptions {
|
|
@@ -154,6 +159,10 @@ export declare interface SFCScriptCompileOptions {
|
|
|
154
159
|
* Production mode. Used to determine whether to generate hashed CSS variables
|
|
155
160
|
*/
|
|
156
161
|
isProd?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Enable/disable source map. Defaults to true.
|
|
164
|
+
*/
|
|
165
|
+
sourceMap?: boolean;
|
|
157
166
|
/**
|
|
158
167
|
* https://babeljs.io/docs/en/babel-parser#plugins
|
|
159
168
|
*/
|
|
@@ -171,7 +180,7 @@ export declare interface SFCScriptCompileOptions {
|
|
|
171
180
|
/**
|
|
172
181
|
* Compile the template and inline the resulting render function
|
|
173
182
|
* directly inside setup().
|
|
174
|
-
* - Only affects
|
|
183
|
+
* - Only affects `<script setup>`
|
|
175
184
|
* - This should only be used in production because it prevents the template
|
|
176
185
|
* from being hot-reloaded separately from component state.
|
|
177
186
|
*/
|
|
@@ -204,7 +213,7 @@ export declare interface SFCStyleCompileOptions {
|
|
|
204
213
|
postcssOptions?: any;
|
|
205
214
|
postcssPlugins?: any[];
|
|
206
215
|
/**
|
|
207
|
-
* @deprecated
|
|
216
|
+
* @deprecated use `inMap` instead.
|
|
208
217
|
*/
|
|
209
218
|
map?: RawSourceMap;
|
|
210
219
|
}
|