Skip to content

Commit 9712c58

Browse files
committed
optimize index.ts fakeScript
1 parent e199d3b commit 9712c58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async function generateBundle(this: PluginContext, bundle: OutputBundle, config:
109109
/** '[src^="./assets/"]' */
110110
, assetsSrcSelector = `[src^="${assetsDirWithBase}"]`
111111

112-
, fakeScript = `_${Math.random().toString(36).slice(2, 10)}()`
112+
, fakeScript = `_VITE${Math.random().toString(36).slice(2, 10)}()`
113113

114114
, globalDelete = new Set<string>()
115115
, globalDoNotDelete = new Set<string>()

0 commit comments

Comments
 (0)