Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Always pass `require` through to amdefine #66

Merged
merged 1 commit into from

2 participants

@duncanbeevers

amdefine allows you to provide an explicit require function. source-maps threads whatever require function is made available to it through to amdefine rather than having amdefine try to pluck one out of the environment.

This allows source-map to be bundled for browser-side consumption via browserify.

@fitzgen fitzgen merged commit e105792 into mozilla:master

1 check passed

Details default The Travis CI build passed
@fitzgen
Owner

Thanks!

@duncanbeevers duncanbeevers deleted the duncanbeevers:thread_require branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 27, 2013
  1. @duncanbeevers
This page is out of date. Refresh to see the latest.
View
2  lib/source-map/array-set.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  lib/source-map/base64-vlq.js
@@ -35,7 +35,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  lib/source-map/base64.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  lib/source-map/binary-search.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  lib/source-map/source-map-consumer.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  lib/source-map/source-map-generator.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  lib/source-map/source-node.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  lib/source-map/util.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  test/source-map/test-api.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  test/source-map/test-array-set.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  test/source-map/test-base64-vlq.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  test/source-map/test-base64.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  test/source-map/test-binary-search.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  test/source-map/test-dog-fooding.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  test/source-map/test-source-map-consumer.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  test/source-map/test-source-map-generator.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  test/source-map/test-source-node.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
View
2  test/source-map/util.js
@@ -5,7 +5,7 @@
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
- var define = require('amdefine')(module);
+ var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {
Something went wrong with that request. Please try again.