Skip to content

Commit cd7a3e6

Browse files
authored
fix: inject esm plugin in nuxt environment (#7)
* fix: inject esm plugin in nuxt environment
1 parent 49fc57e commit cd7a3e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nuxt-module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const PlausibleModule: Module<PlausibleOptions> = function (moduleOptions) {
1818
}
1919

2020
this.addPlugin({
21-
src: path.resolve(__dirname, './nuxt-plugin.js'),
21+
src: path.resolve(__dirname, '../esm/nuxt-plugin.js'),
2222
mode: 'client',
2323
ssr: false,
2424
fileName: 'vue-plausible.client.js',

0 commit comments

Comments
 (0)