Skip to content

Commit 8868be1

Browse files
committed
support es module build
1 parent 5553f4f commit 8868be1

24 files changed

+6149
-9357
lines changed

docs/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "vue-final-modal-docs",
3-
"version": "0.6.2",
2+
"name": "vue-final-modal",
3+
"version": "0.9.0",
44
"private": true,
55
"scripts": {
66
"dev": "nuxt",
@@ -10,7 +10,8 @@
1010
},
1111
"dependencies": {
1212
"@nuxt/content-theme-docs": "^0.4.0",
13-
"nuxt": "^2.14.1"
13+
"nuxt": "^2.14.1",
14+
"vue-final-modal": "file:../packages/vue-final-modal"
1415
},
1516
"devDependencies": {
1617
"@nuxtjs/google-analytics": "^2.4.0"

docs/plugins/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import Vue from 'vue'
2-
import { VueFinalModal } from '../../plugin'
2+
import { VueFinalModal } from 'vue-final-modal'
33

44
Vue.component('VueFinalModal', VueFinalModal)

docs/static/sw.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
11
// THIS FILE SHOULD NOT BE VERSION CONTROLLED
2+
3+
// https://github.com/NekR/self-destroying-sw
4+
5+
self.addEventListener('install', function (e) {
6+
self.skipWaiting()
7+
})
8+
9+
self.addEventListener('activate', function (e) {
10+
self.registration.unregister()
11+
.then(function () {
12+
return self.clients.matchAll()
13+
})
14+
.then(function (clients) {
15+
clients.forEach(client => client.navigate(client.url))
16+
})
17+
})

0 commit comments

Comments
 (0)