Skip to content

Commit b89eb1b

Browse files
committed
No savage leaflet import
1 parent d89538a commit b89eb1b

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/module.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { defineNuxtModule, addComponent, addPlugin } from '@nuxt/kit'
2-
import path from 'path'
1+
import { defineNuxtModule, addComponent } from '@nuxt/kit'
32

43
// Module options TypeScript interface definition
54
export interface ModuleOptions {}
@@ -43,12 +42,6 @@ export default defineNuxtModule<ModuleOptions>({
4342
// Add Leaflet's CSS
4443
nuxt.options.css.push('leaflet/dist/leaflet.css')
4544

46-
// Add Leaflet's JS
47-
addPlugin({
48-
src: path.resolve(__dirname, 'runtime/leaflet-runtime'),
49-
mode: 'client'
50-
})
51-
5245
// Export Vue Leaflet components
5346
for (const component of components) {
5447
addComponent({

src/runtime/leaflet-runtime.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)