Skip to content

Commit a974a4a

Browse files
committed
fix(optimizer): externalize as absolute
1 parent ea36743 commit a974a4a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/vite/src/node/optimizer/rolldownDepPlugin.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function rolldownDepPlugin(
123123
if (isExternalUrl(resolved)) {
124124
return {
125125
id: resolved,
126-
external: true,
126+
external: 'absolute',
127127
}
128128
}
129129
return {
@@ -157,7 +157,7 @@ export function rolldownDepPlugin(
157157
if (id.startsWith(convertedExternalPrefix)) {
158158
return {
159159
id: id.slice(convertedExternalPrefix.length),
160-
external: true,
160+
external: 'absolute',
161161
}
162162
}
163163

@@ -182,7 +182,7 @@ export function rolldownDepPlugin(
182182
}
183183
return {
184184
id: resolved,
185-
external: true,
185+
external: 'absolute',
186186
}
187187
}
188188
},
@@ -220,7 +220,7 @@ export function rolldownDepPlugin(
220220
if (moduleListContains(external, id)) {
221221
return {
222222
id: id,
223-
external: true,
223+
external: 'absolute',
224224
}
225225
}
226226

@@ -329,7 +329,7 @@ export function rolldownCjsExternalPlugin(
329329
if (id.startsWith(nonFacadePrefix)) {
330330
return {
331331
id: id.slice(nonFacadePrefix.length),
332-
external: true,
332+
external: 'absolute',
333333
}
334334
}
335335

@@ -344,7 +344,7 @@ export function rolldownCjsExternalPlugin(
344344

345345
return {
346346
id,
347-
external: true,
347+
external: 'absolute',
348348
}
349349
}
350350
},

0 commit comments

Comments
 (0)