Skip to content

Commit 6dbd4b0

Browse files
committed
chore: fix type errors
1 parent b72f607 commit 6dbd4b0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/vite/src/node/build.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1329,10 +1329,10 @@ const relativeUrlMechanisms: Record<
13291329
// getResolveUrl(
13301330
// `'${escapeId(partialEncodeURIPath(relativePath))}', module.meta.url`,
13311331
// ),
1332-
// umd: (relativePath) =>
1333-
// `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(
1334-
// relativePath,
1335-
// )} : ${getRelativeUrlFromDocument(relativePath, true)})`,
1332+
umd: (relativePath) =>
1333+
`(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(
1334+
relativePath,
1335+
)} : ${getRelativeUrlFromDocument(relativePath, true)})`,
13361336
}
13371337
/* end of copy */
13381338

packages/vite/src/node/constants.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export const ROLLUP_HOOKS = [
2626
'intro',
2727
'outro',
2828
'closeBundle',
29-
// 'closeWatcher',
29+
'closeWatcher',
3030
'load',
3131
'moduleParsed',
32-
// 'watchChange',
32+
'watchChange',
3333
'resolveDynamicImport',
3434
'resolveId',
3535
// 'shouldTransformCachedModule',

0 commit comments

Comments
 (0)