@code-inspector/core
Advanced tools
| import type { NodeTransform } from '@vue/compiler-dom'; | ||
| import type { EscapeTags, PathType } from '../../shared'; | ||
| type VueInspectorNodeTransformOptions = { | ||
| escapeTags?: EscapeTags; | ||
| pathType?: PathType; | ||
| mappings?: Record<string, string> | Array<{ | ||
| find: string | RegExp; | ||
| replacement: string; | ||
| }>; | ||
| }; | ||
| export declare function createVueInspectorNodeTransform(options?: VueInspectorNodeTransformOptions): NodeTransform; | ||
| export {}; |
+1
-1
| { | ||
| "name": "@code-inspector/core", | ||
| "version": "1.6.3", | ||
| "version": "1.6.4", | ||
| "main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.mjs", |
@@ -1,2 +0,2 @@ | ||
| export { createVueInspectorNodeTransform } from './vue-node-transform'; | ||
| export { createVueInspectorNodeTransform } from './transform-vue-node'; | ||
| import { EscapeTags, PathType } from '../../shared'; | ||
@@ -3,0 +3,0 @@ type FileType = 'vue' | 'jsx' | 'svelte' | 'astro' | 'mdx' | unknown; |
@@ -143,2 +143,11 @@ /// <reference types="node" /> | ||
| /** | ||
| * @zh Vue 文件的编译方式,仅对 `webpack/rspack/rsbuild` 项目生效,默认值为 `custom` | ||
| * - `custom` 表示使用 code-inspector-plugin 自定义的 loader 注入,优点是兼容性强,部分 vue 项目生产环境使用可能导致 scoped css 失效 | ||
| * - `internal` 表示使用 vue-loader 内部 compiler node transform,可以解决生产环境 scoped css 失效问题,但是低版本 vue compiler 不兼容 | ||
| * @en Vue file compilation mode, only effective for `webpack/rspack/rsbuild` projects, default value is `custom` | ||
| * - `custom` means using code-inspector-plugin's custom loader injection, with strong compatibility, but may cause scoped CSS to fail in some Vue projects in production environment | ||
| * - `internal` means using vue-loader's internal compiler node transform, which can solve the scoped CSS failure issue in production environment, but is not compatible with lower versions of Vue compiler | ||
| */ | ||
| vueLoader?: 'custom' | 'internal'; | ||
| /** | ||
| * @zh 不参与编译的文件 | ||
@@ -145,0 +154,0 @@ * @en Files not to be compiled |
| import type { NodeTransform } from '@vue/compiler-dom'; | ||
| import type { EscapeTags, PathType } from '../../shared'; | ||
| type VueInspectorNodeTransformOptions = { | ||
| escapeTags?: EscapeTags; | ||
| pathType?: PathType; | ||
| mappings?: Record<string, string> | Array<{ | ||
| find: string | RegExp; | ||
| replacement: string; | ||
| }>; | ||
| }; | ||
| export declare function createVueInspectorNodeTransform(options?: VueInspectorNodeTransformOptions): NodeTransform; | ||
| export {}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Telemetry
Supply chain riskThis package contains telemetry which tracks how it is used.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Telemetry
Supply chain riskThis package contains telemetry which tracks how it is used.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
12467133
0.01%3314
0.27%