Skip to content

Commit 35c78d2

Browse files
committed
fix(esbuild): compat esbuild before v0.14.3
closes #427
1 parent 1b697de commit 35c78d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/esbuild/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function buildSetup() {
213213

214214
if (plugin.load) {
215215
onLoad({ filter: onLoadFilter }, async (args) => {
216-
const id = args.path + args.suffix
216+
const id = args.path + (args.suffix || '') // compat for #427
217217

218218
const { errors, warnings, mixedContext }
219219
= createPluginContext(context)
@@ -254,7 +254,7 @@ function buildSetup() {
254254

255255
if (plugin.transform) {
256256
onTransform({ filter: onLoadFilter }, async (args) => {
257-
const id = args.path + args.suffix
257+
const id = args.path + (args.suffix || '')
258258

259259
if (plugin.transformInclude && !plugin.transformInclude(id))
260260
return

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