vite-plugin-checker
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -86,19 +86,25 @@ "use strict"; | ||
resolveId(id) { | ||
if (id === index_1.RUNTIME_PUBLIC_PATH) { | ||
return id; | ||
if (viteMode === 'serve') { | ||
if (id === index_1.RUNTIME_PUBLIC_PATH) { | ||
return id; | ||
} | ||
} | ||
}, | ||
load(id) { | ||
if (id === index_1.RUNTIME_PUBLIC_PATH) { | ||
return index_1.runtimeCode; | ||
if (viteMode === 'serve') { | ||
if (id === index_1.RUNTIME_PUBLIC_PATH) { | ||
return index_1.runtimeCode; | ||
} | ||
} | ||
}, | ||
transformIndexHtml() { | ||
return [ | ||
{ | ||
tag: 'script', | ||
attrs: { type: 'module' }, | ||
children: `import { inject } from "${index_1.RUNTIME_PUBLIC_PATH}"; inject();`, | ||
}, | ||
]; | ||
if (viteMode === 'serve') { | ||
return [ | ||
{ | ||
tag: 'script', | ||
attrs: { type: 'module' }, | ||
children: `import { inject } from "${index_1.RUNTIME_PUBLIC_PATH}"; inject();`, | ||
}, | ||
]; | ||
} | ||
}, | ||
@@ -105,0 +111,0 @@ buildStart: () => { |
{ | ||
"name": "vite-plugin-checker", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Vite plugin that runs TypeScript type checker on a separate process.", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179577
3903