Skip to content

Commit 081c130

Browse files
committed
fix: disable autoDeclare if auto imports are disabled
1 parent 553fdd6 commit 081c130

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bundler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function createLogger(label) {
7474
webpack: () => VueI18nPlugin.webpack(vueI18nPluginOptions)
7575
})
7676
addBuildPlugin(TransformMacroPlugin(pluginOptions))
77-
if (options.autoDeclare) {
77+
if (options.autoDeclare && nuxt.options.imports.autoImport !== false) {
7878
addBuildPlugin(TransformI18nFunctionPlugin(pluginOptions))
7979
}
8080

0 commit comments

Comments
 (0)