Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergix44 committed Dec 15, 2023
1 parent e1c471b commit 559f709
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
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.0",
"version": "1.0.1",
"description": "Laravel localization bridge for your frontend.",
"main": "dist/index.cjs",
"module": "dist/index.js",
Expand Down
8 changes: 6 additions & 2 deletions src/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ export default function laravelTranslator(options: string | VitePluginOptionsInt

const paths = [frameworkLangPath, langPath, ...additionalLangPaths]
return {
name: 'laravelTranslator',
enforce: 'post',
name: 'laravel-translator',
config: () => ({
optimizeDeps: {
exclude: [virtualModuleId]
}
}),
resolveId(id) {
if (id === virtualModuleId) {
return resolvedVirtualModuleId
Expand Down

0 comments on commit 559f709

Please sign in to comment.