File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ export const optionLoader = createUnplugin((options: LoaderOptions = {}) => ({
16
16
enforce : 'post' ,
17
17
18
18
transformInclude ( id ) {
19
- const { pathname } = parseURL ( id )
20
- return pathname . endsWith ( INTLIFY_VUEI18N_OPTIONS_VIRTUAL_FILENAME )
19
+ return false
21
20
} ,
22
21
23
22
async transform ( code ) {
Original file line number Diff line number Diff line change @@ -72,7 +72,9 @@ const IntlifyModule = defineNuxtModule<IntlifyModuleOptions>({
72
72
filename : INTLIFY_VUEI18N_OPTIONS_VIRTUAL_FILENAME ,
73
73
write : true ,
74
74
getContents : ( ) => {
75
- return `${ nuxt . options . dev ? "// 'vueI18n' option loading ..." : '' } `
75
+ return `export default () => Promise.resolve(${ JSON . stringify (
76
+ options . vueI18n || { }
77
+ ) } )`
76
78
}
77
79
} )
78
80
You can’t perform that action at this time.
0 commit comments