Skip to content

Commit

Permalink
fix: use mjs version of klona (#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 1, 2021
1 parent a8cccc6 commit bb0445d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb0445d

Please sign in to comment.