Skip to content

Commit

Permalink
Merge pull request #334 from sanctuary-js/jf-browser-builds
Browse files Browse the repository at this point in the history
Static imports to aid bundle traversing tools
  • Loading branch information
davidchambers authored Feb 15, 2017
2 parents cbcba36 + e111f59 commit a16e437
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,16 @@

'use strict';

// deps :: Array String
var deps = [
'sanctuary-def',
'sanctuary-type-classes',
'sanctuary-type-identifiers'
];

/* istanbul ignore else */
if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports = f(require(deps[0]), require(deps[1]), require(deps[2]));
module.exports = f(require('sanctuary-def'),
require('sanctuary-type-classes'),
require('sanctuary-type-identifiers'));
} else if (typeof define === 'function' && define.amd != null) {
define(deps, f);
define(['sanctuary-def',
'sanctuary-type-classes',
'sanctuary-type-identifiers'],
f);
} else {
self.sanctuary = f(self.sanctuaryDef,
self.sanctuaryTypeClasses,
Expand Down

0 comments on commit a16e437

Please sign in to comment.