@code-inspector/core 1.2.2 → 1.2.3-beta.2
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/index.js +4 -4
- package/dist/index.mjs +25435 -25451
- package/package.json +1 -1
- package/types/shared/type.d.ts +10 -0
package/package.json
CHANGED
package/types/shared/type.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export type RecordInfo = {
|
|
|
13
13
|
inputs?: Promise<string[]>;
|
|
14
14
|
injectTo?: string[];
|
|
15
15
|
envDir?: string;
|
|
16
|
+
root?: string;
|
|
16
17
|
};
|
|
17
18
|
export type IDEOpenMethod = 'reuse' | 'new' | 'auto';
|
|
18
19
|
export type ImportClientWay = 'file' | 'code';
|
|
@@ -156,5 +157,14 @@ export type CodeOptions = {
|
|
|
156
157
|
* @en The type of path injected into the DOM, the default value is `absolute`, which means the path is relative to the project root directory
|
|
157
158
|
*/
|
|
158
159
|
pathType?: PathType;
|
|
160
|
+
/**
|
|
161
|
+
* @zh 要跳过注入的代码片段:
|
|
162
|
+
* - console: 跳过注入 console.error 和 console.warn 的代码片段,nextjs 和 nuxt 项目不建议跳过此项
|
|
163
|
+
* - htmlScript: 跳过在 html 中注入 script 标签的代码片段,MPA 项目不建议跳过此项
|
|
164
|
+
* @en The code snippets to skip injecting
|
|
165
|
+
* - console: Skip injecting the code snippet that injects console.error and console.warn, it is not recommended to skip this item for nextjs and nuxt projects
|
|
166
|
+
* - htmlScript: Skip injecting the code snippet that injects script tags in html, it is not recommended to skip this item for MPA projects
|
|
167
|
+
*/
|
|
168
|
+
skipSnippets?: ('console' | 'htmlScript')[];
|
|
159
169
|
};
|
|
160
170
|
export {};
|