Make require('marko/node-require').install() a noop in the browser

This commit is contained in:
Patrick Steele-Idem 2015-07-06 16:32:43 -06:00
parent 25f91c3a7e
commit b9c0afa2ac
2 changed files with 5 additions and 1 deletions

1
node-require-browser.js Normal file
View File

@ -0,0 +1 @@
exports.install = function() {};

View File

@ -64,5 +64,8 @@
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"version": "2.7.5"
"version": "2.7.5",
"browser": {
"./node-require.js": "./node-require-browser.js"
}
}