Skip to content

Commit 4abab22

Browse files
committed
fix(esbuild): fix again 9f85a26
1 parent d440a60 commit 4abab22

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/esbuild/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function getEsbuildPlugin<UserOptions = Record<string, never>>(
7272
loader.options ||= _options
7373
loader.onTransformCb = callback
7474
},
75-
} as EsbuildPluginBuild)
75+
} as EsbuildPluginBuild, build)
7676

7777
// skip if no load & transform hooks
7878
if (loader.onLoadCb || loader.onTransformCb)
@@ -141,9 +141,8 @@ export function getEsbuildPlugin<UserOptions = Record<string, never>>(
141141
}
142142

143143
function buildSetup() {
144-
return (plugin: UnpluginOptions): EsbuildPlugin['setup'] => {
145-
return (rawBuild) => {
146-
const build = rawBuild as EsbuildPluginBuild
144+
return (plugin: UnpluginOptions) => {
145+
return (build: EsbuildPluginBuild, rawBuild: PluginBuild) => {
147146
const context = createBuildContext(build)
148147
const { onStart, onEnd, onResolve, onLoad, onTransform, initialOptions } = build
149148

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy