Skip to content

Commit 61be385

Browse files
committed
chore: fix type errors
1 parent ed769dd commit 61be385

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
@@ -1340,10 +1340,10 @@ const relativeUrlMechanisms: Record<
13401340
// getResolveUrl(
13411341
// `'${escapeId(partialEncodeURIPath(relativePath))}', module.meta.url`,
13421342
// ),
1343-
// umd: (relativePath) =>
1344-
// `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(
1345-
// relativePath,
1346-
// )} : ${getRelativeUrlFromDocument(relativePath, true)})`,
1343+
umd: (relativePath) =>
1344+
`(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(
1345+
relativePath,
1346+
)} : ${getRelativeUrlFromDocument(relativePath, true)})`,
13471347
}
13481348
/* end of copy */
13491349

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)