Skip to content

Commit

Permalink
chore: fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Oct 24, 2024
1 parent b72f607 commit 6dbd4b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/vite/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1329,10 +1329,10 @@ const relativeUrlMechanisms: Record<
// getResolveUrl(
// `'${escapeId(partialEncodeURIPath(relativePath))}', module.meta.url`,
// ),
// umd: (relativePath) =>
// `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(
// relativePath,
// )} : ${getRelativeUrlFromDocument(relativePath, true)})`,
umd: (relativePath) =>
`(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(
relativePath,
)} : ${getRelativeUrlFromDocument(relativePath, true)})`,
}
/* end of copy */

Expand Down
4 changes: 2 additions & 2 deletions packages/vite/src/node/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export const ROLLUP_HOOKS = [
'intro',
'outro',
'closeBundle',
// 'closeWatcher',
'closeWatcher',
'load',
'moduleParsed',
// 'watchChange',
'watchChange',
'resolveDynamicImport',
'resolveId',
// 'shouldTransformCachedModule',
Expand Down

0 comments on commit 6dbd4b0

Please sign in to comment.