Skip to content

Commit cb83149

Browse files
committed
Do not externalise inertia helpers
Due to a [bugfix](vitejs/vite#9146) in version Vite 3.0.1 we now need to revert to referencing the package by name directly in order to have Vite not externalise the helpers. Fixes: #93
1 parent a766dd5 commit cb83149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ function noExternalInertiaHelpers(config: UserConfig): true|Array<string|RegExp>
360360
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
361361
/* @ts-ignore */
362362
const userNoExternal = (config.ssr as SSROptions|undefined)?.noExternal
363-
const pluginNoExternal = ['laravel-vite-plugin/inertia-helpers']
363+
const pluginNoExternal = ['laravel-vite-plugin']
364364

365365
if (userNoExternal === true) {
366366
return true

0 commit comments

Comments
 (0)