forked from microsoftgraph/msgraph-sdk-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrowserify.js
More file actions
17 lines (16 loc) · 726 Bytes
/
browserify.js
File metadata and controls
17 lines (16 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
/**
* Initializes browserify, adds a wrapper file and outputs the browserified file
*/
const Browserify = require("browserify");
const browserify = Browserify();
browserify.add("./browser-wrapper.js");
browserify.add("./browser-wrapper-dependency.js");
browserify.exclude("isomorphic-fetch");
browserify.exclude("es6-promise");
browserify.bundle().pipe(process.stdout);