Skip to content

Commit 2b79c92

Browse files
committed
Add @vite-ignore to imports
1 parent ae6d5e8 commit 2b79c92

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/servicestack-client.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2869,8 +2869,8 @@ export class Inspect {
28692869
return;
28702870
// resolve dynamic path to prevent ng webpack static analysis
28712871
const nodeModule = (m) => 'no' + 'de:' + `${m}`;
2872-
await import(nodeModule('fs')).then(async (fs) => {
2873-
await import(nodeModule('path')).then(path => {
2872+
await import(/* @vite-ignore */ nodeModule('fs')).then(async (fs) => {
2873+
await import(/* @vite-ignore */ nodeModule('path')).then(path => {
28742874
let varsPath = inspectVarsPath.replace(/\\/g, '/');
28752875
if (varsPath.indexOf('/') >= 0) {
28762876
let dir = path.dirname(varsPath);

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3328,8 +3328,8 @@ export class Inspect {
33283328
// resolve dynamic path to prevent ng webpack static analysis
33293329
const nodeModule = (m:string) => 'no' + 'de:' + `${m}`
33303330

3331-
await import(nodeModule('fs')).then(async fs => {
3332-
await import(nodeModule('path')).then(path => {
3331+
await import(/* @vite-ignore */ nodeModule('fs')).then(async fs => {
3332+
await import(/* @vite-ignore */ nodeModule('path')).then(path => {
33333333
let varsPath = inspectVarsPath.replace(/\\/g,'/')
33343334
if (varsPath.indexOf('/') >= 0) {
33353335
let dir = path.dirname(varsPath)

0 commit comments

Comments
 (0)