Skip to content

Commit

Permalink
No savage leaflet import
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugustinette committed May 29, 2024
1 parent d89538a commit b89eb1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
9 changes: 1 addition & 8 deletions src/module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineNuxtModule, addComponent, addPlugin } from '@nuxt/kit'
import path from 'path'
import { defineNuxtModule, addComponent } from '@nuxt/kit'

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

// Add Leaflet's JS
addPlugin({
src: path.resolve(__dirname, 'runtime/leaflet-runtime'),
mode: 'client'
})

// Export Vue Leaflet components
for (const component of components) {
addComponent({
Expand Down
9 changes: 0 additions & 9 deletions src/runtime/leaflet-runtime.ts

This file was deleted.

0 comments on commit b89eb1b

Please sign in to comment.