@vobs/compiler 1.0.0 → 1.2.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.
- package/README.md +2 -0
- package/dist/compile.cjs +1149 -0
- package/dist/compile.cjs.map +1 -0
- package/dist/compile.d.cts +8 -0
- package/dist/compile.d.ts +8 -0
- package/dist/compile.js +1141 -0
- package/dist/compile.js.map +1 -0
- package/dist/i18n-extractor.cjs +51 -0
- package/dist/i18n-extractor.cjs.map +1 -0
- package/dist/i18n-extractor.d.cts +16 -0
- package/dist/i18n-extractor.d.ts +16 -0
- package/dist/i18n-extractor.js +45 -0
- package/dist/i18n-extractor.js.map +1 -0
- package/dist/index.cjs +1187 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1178 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin.cjs +4 -0
- package/dist/plugin.cjs.map +1 -0
- package/dist/plugin.d.cts +70 -0
- package/dist/plugin.d.ts +70 -0
- package/dist/plugin.js +3 -0
- package/dist/plugin.js.map +1 -0
- package/package.json +26 -6
- package/src/compile.test.ts +98 -16
- package/src/compile.ts +409 -170
- package/src/plugin.ts +5 -0
package/src/plugin.ts
CHANGED
|
@@ -36,6 +36,11 @@ export interface CompilerOptions {
|
|
|
36
36
|
|
|
37
37
|
export interface CompileOptions extends CompilerOptions {
|
|
38
38
|
filename?: string
|
|
39
|
+
/**
|
|
40
|
+
* 是否为组件调用生成源码位置({ file, line, column },用于错误定位与 DevTools)。
|
|
41
|
+
* 默认 true。生产构建应传 false 以减小产物体积,省略后错误仍带组件名,定位走 source map。
|
|
42
|
+
*/
|
|
43
|
+
sourceLocation?: boolean
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
export interface VobsSourceMap {
|