Comparing version 8.5.3 to 8.5.4
@@ -16,2 +16,11 @@ require('es6-promise').polyfill() | ||
// determine hot-reload-api location | ||
var hotReloadAPIPath = 'vue-hot-reload-api' | ||
try { | ||
require(hotReloadAPIPath) | ||
} catch (e) { | ||
// likely Npm 2.x | ||
hotReloadAPIPath = 'vueify/node_modules/vue-hot-reload-api' | ||
} | ||
var htmlMinifyOptions = { | ||
@@ -140,3 +149,3 @@ collapseWhitespace: true, | ||
' module.hot.accept()\n' + | ||
' var hotAPI = require("vueify/node_modules/vue-hot-reload-api")\n' + | ||
' var hotAPI = require("' + hotReloadAPIPath + '")\n' + | ||
' hotAPI.install(require("vue"), true)\n' + | ||
@@ -143,0 +152,0 @@ ' if (!hotAPI.compatible) return\n' + |
{ | ||
"name": "vueify", | ||
"version": "8.5.3", | ||
"version": "8.5.4", | ||
"description": "Vue component transform for Browserify", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
42758
936
15