mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Replace useless core-util-is module with empty stub.
Loading this package triggers a ReferenceError if Buffer is not globally defined. However, this package never uses Buffer.isBuffer, and in fact none of this package's properties are ever used by any other packages in meteor-node-stubs, so it seems safe to replace it with an empty stub.
This commit is contained in:
1
map.json
1
map.json
@@ -6,6 +6,7 @@
|
||||
"console": "console-browserify",
|
||||
"constants": "constants-browserify",
|
||||
"crypto": "crypto-browserify",
|
||||
"core-util-is": null,
|
||||
"dgram": null,
|
||||
"dns": null,
|
||||
"domain": "domain-browser",
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"prepublish": "node scripts/build-deps.js"
|
||||
"prepublish": "node scripts/build-deps.js",
|
||||
"postinstall": "node scripts/rm-core-utils.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"assert": "^1.4.1",
|
||||
|
||||
3
scripts/rm-core-utils.js
Normal file
3
scripts/rm-core-utils.js
Normal file
@@ -0,0 +1,3 @@
|
||||
require("rimraf").sync(require("path").join(
|
||||
__dirname, "..", "node_modules", "**", "core-util-is"
|
||||
));
|
||||
Reference in New Issue
Block a user