Skip to content

Commit

Permalink
♻️ (plugins) update addPlugin references
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed May 17, 2021
1 parent ce58051 commit cab5810
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default <Module>async function docusModule() {
})
}
addPlugin({
src: resolve(__dirname, 'plugin.js'),
src: resolve(__dirname, 'plugin.mjs'),
filename: 'docus.js',
options: pluginOptions
})
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default <Module>function docusI18n() {

nuxt.hook('build:before', () => {
addPlugin({
src: r('./runtime/plugin.js'),
src: r('./runtime/plugin.mjs'),
filename: 'docus-i18n.js'
})

Expand Down
2 changes: 1 addition & 1 deletion src/social-image/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default <Module<SocialImageModuleOptions & InternalModuleOptions>>functio
setupStaticGeneration(nuxt, options)

addPlugin({
src: r('runtime/plugin.js'),
src: r('runtime/plugin.mjs'),
fileName: join('social-image.js'),
options
})
Expand Down

0 comments on commit cab5810

Please sign in to comment.