UNPKG

951 BJavaScriptView Raw
1'use strict';
2
3var _index = require('./index');
4
5var _index2 = _interopRequireDefault(_index);
6
7var _passwordless = require('./passwordless');
8
9var _passwordless2 = _interopRequireDefault(_passwordless);
10
11function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
13/*
14 *
15 * This is used to build the bundle with browserify.
16 *
17 * The bundle is used by people who doesn't use browserify.
18 * Those who use browserify will install with npm and require the module,
19 * the package.json file points to index.js.
20 */
21
22if (typeof global.window.define == 'function' && global.window.define.amd) {
23 global.window.define('auth0Lock', function () {
24 return _index2.default;
25 });
26 global.window.define('auth0LockPasswordless', function () {
27 return _passwordless2.default;
28 });
29} else if (global.window) {
30 global.window.Auth0Lock = _index2.default;
31 global.window.Auth0LockPasswordless = _passwordless2.default;
32}