diff --git a/build/poi.lib.config.js b/build/poi.lib.config.js index a49799ca..bfdc6a1a 100644 --- a/build/poi.lib.config.js +++ b/build/poi.lib.config.js @@ -18,5 +18,6 @@ module.exports = { chainWebpack(config) { config.resolve.alias.set('vue$', 'vue/dist/vue.esm.js') config.output.libraryExport('default') + config.output.globalObject('this') } } diff --git a/package.json b/package.json index 86e2d57d..c1558f76 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "test:unit": "poi puppet src/**/*.test.js --test --plugin @poi/puppet --framework mocha" }, "dependencies": { - "isomorphic-unfetch": "^3.0.0", "jump.js": "^1.0.2", "loadjs": "^3.5.4", "marked": "^0.5.0", diff --git a/src/components/ImageZoom.vue b/src/components/ImageZoom.vue index 5ac38c8c..b299a190 100644 --- a/src/components/ImageZoom.vue +++ b/src/components/ImageZoom.vue @@ -5,10 +5,9 @@