Skip to content

Commit

Permalink
Fix dev mode again
Browse files Browse the repository at this point in the history
  • Loading branch information
sergix44 committed Apr 13, 2024
1 parent aebaa9d commit f39bfa1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "laravel-translator",
"type": "module",
"version": "1.0.3",
"version": "1.0.4",
"description": "Laravel localization bridge for your frontend.",
"main": "dist/index.cjs",
"module": "dist/index.js",
Expand Down
5 changes: 5 additions & 0 deletions src/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ export default function laravelTranslator(options: string | VitePluginOptionsInt
const paths = [frameworkLangPath, langPath, ...additionalLangPaths]
return {
name: 'laravel-translator',
config: () => ({
optimizeDeps: {
exclude: [virtualModuleId]
}
}),
resolveId(id) {
if (id === virtualModuleId) {
return resolvedVirtualModuleId
Expand Down

0 comments on commit f39bfa1

Please sign in to comment.