Skip to content

Commit

Permalink
refactor: avoid variable shadowing
Browse files Browse the repository at this point in the history
closes #38
  • Loading branch information
pionxzh committed Nov 14, 2023
1 parent 51c3c65 commit f4b65b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/playground/src/pages/Uploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ function reset() {
setModuleMeta({})
}
async function startUnpack(code: string) {
async function startUnpack(input: string) {
setProcessedCount(0)
setIsLoading(true)
reset()
// TODO: Move to worker
const { modules, moduleIdMapping } = unpack(code)
const { modules, moduleIdMapping } = unpack(input)
const unpackedModules = modules.map<TransformedModule>((module) => {
const { id, isEntry, code, tags } = module
return {
Expand Down

0 comments on commit f4b65b7

Please sign in to comment.