From f7e84ff095ef35db5a60307e476028768fc50850 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 1 Mar 2021 13:15:44 +0100 Subject: [PATCH] fix: use mjs version of klona --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 01ab8cea8..b8313655a 100644 --- a/src/index.js +++ b/src/index.js @@ -70,7 +70,7 @@ export default function (userOptions) { this.nuxt.hook('build:before', () => buildHook(this, options)) - this.options.alias['~i18n-klona'] = require.resolve('klona/full') + this.options.alias['~i18n-klona'] = require.resolve('klona/full').replace('.js', '.mjs') this.options.router.middleware.push('nuxti18n') this.options.render.bundleRenderer.directives = this.options.render.bundleRenderer.directives || {} this.options.render.bundleRenderer.directives.t = i18nExtensionsDirective