Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Feb 9, 2023
1 parent 0f499ee commit c2bc7b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playground/spa/publicTypescript/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"haha": "/haha.b0269334.js",
"index": "/index.ea6f9390.js"
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function publicTypescript(options: VPPTPluginOptions = {}) {
async buildStart() {
if (opts.ssrBuild || config.build.ssr) return

if (!isEmptyObject(previousOpts) && eq(previousOpts, opts)) {
if (eq(previousOpts, opts)) {
return
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { getGlobalConfig } from './globalConfig'
import { assert } from './assert'
import { crlf } from '.'

export function getContentHash(chunk: string | Uint8Array | undefined, hash: VPPTPluginOptions['hash']) {
export function getContentHash(chunk: string | Uint8Array | undefined, hash?: VPPTPluginOptions['hash']) {
if (!chunk) return ''
const hashLen = typeof hash === 'number' ? hash : 8
return createHash('sha256').update(chunk).digest('hex').substring(0, hashLen)
Expand Down

0 comments on commit c2bc7b1

Please sign in to comment.