Skip to content

Commit 25d78e7

Browse files
committed
chore: fix type errors
1 parent 00da200 commit 25d78e7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/vite/src/node/build.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,10 +1351,10 @@ const relativeUrlMechanisms: Record<
13511351
// getResolveUrl(
13521352
// `'${escapeId(partialEncodeURIPath(relativePath))}', module.meta.url`,
13531353
// ),
1354-
// umd: (relativePath) =>
1355-
// `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(
1356-
// relativePath,
1357-
// )} : ${getRelativeUrlFromDocument(relativePath, true)})`,
1354+
umd: (relativePath) =>
1355+
`(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(
1356+
relativePath,
1357+
)} : ${getRelativeUrlFromDocument(relativePath, true)})`,
13581358
}
13591359
/* end of copy */
13601360

packages/vite/src/node/constants.ts

Lines changed: 2 additions & 2 deletions
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)