Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

fix browserify build #70

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions lib/encoding-indexes.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions lib/encoding.js
Original file line number Diff line number Diff line change
@@ -11,8 +11,7 @@
// If we're in node require encoding-indexes and attach it to the global.
if (typeof module !== "undefined" && module.exports &&
!global["encoding-indexes"]) {
global["encoding-indexes"] =
require("./encoding-indexes.js")["encoding-indexes"];
require("./encoding-indexes.js");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This directly conflicts with the change made for b4e5bc2 for #67

}

//
@@ -3310,4 +3309,4 @@

// For strict environments where `this` inside the global scope
// is `undefined`, take a pure object instead
}(this || {}));
}(this || {}));
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -29,6 +29,10 @@
"decoding",
"living standard"
],
"browser": {
"./lib/encoding-indexes.js": false

},
"bugs": {
"url": "https://github.com/inexorabletash/text-encoding/issues"
},