We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d89538a commit b89eb1bCopy full SHA for b89eb1b
src/module.ts
@@ -1,5 +1,4 @@
1
-import { defineNuxtModule, addComponent, addPlugin } from '@nuxt/kit'
2
-import path from 'path'
+import { defineNuxtModule, addComponent } from '@nuxt/kit'
3
4
// Module options TypeScript interface definition
5
export interface ModuleOptions {}
@@ -43,12 +42,6 @@ export default defineNuxtModule<ModuleOptions>({
43
42
// Add Leaflet's CSS
44
nuxt.options.css.push('leaflet/dist/leaflet.css')
45
46
- // Add Leaflet's JS
47
- addPlugin({
48
- src: path.resolve(__dirname, 'runtime/leaflet-runtime'),
49
- mode: 'client'
50
- })
51
-
52
// Export Vue Leaflet components
53
for (const component of components) {
54
addComponent({
src/runtime/leaflet-runtime.ts
0 commit comments