Skip to content

Commit

Permalink
Add no-browser entry
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed Oct 30, 2018
1 parent 4a7d7ab commit db04b3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions no-browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict'

module.exports = function () {
throw Error('pan-zoom works only in browser environment')
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "pan-zoom",
"version": "3.3.0",
"description": "Pan and zoom events for any element",
"main": "index.js",
"main": "no-browser.js",
"browser": "index.js",
"scripts": {
"test": "budo test.js"
},
Expand Down

0 comments on commit db04b3f

Please sign in to comment.