babel-plugin-san-hmr
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,2 +6,3 @@ /** | ||
const genId = require('./gen-id'); | ||
const sanHMRAPI = require.resolve('san-hot-reload-api'); | ||
const sanModuleName = 'san'; | ||
@@ -14,3 +15,3 @@ const sanComponentClassName = 'Component'; | ||
if (module.hot) { | ||
var hotApi = require('san-hot-reload-api'); | ||
var hotApi = require('${sanHMRAPI}'); | ||
hotApi.install(require('san'), false); | ||
@@ -17,0 +18,0 @@ if (!hotApi.compatible) { |
{ | ||
"name": "babel-plugin-san-hmr", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Babel plugin from San component hot module replacement", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5870
107