-
Notifications
You must be signed in to change notification settings - Fork 12
/
rollup.config.js
37 lines (34 loc) · 962 Bytes
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import commonjs from "rollup-plugin-commonjs";
import json from "rollup-plugin-json";
import nodeResolve from "rollup-plugin-node-resolve";
import sourcemaps from "rollup-plugin-sourcemaps";
import visualizer from "rollup-plugin-visualizer";
const banner = `/** @license ms-rest-browserauth
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/`;
/**
* @type {import('rollup').RollupFileOptions}
*/
const config = {
input: './es/lib/index.js',
external: ["@azure/ms-rest-js"],
output: {
file: "./dist/msAuth.js",
format: "umd",
name: "msAuth",
sourcemap: true,
globals: {
"@azure/ms-rest-js": "msRest"
},
banner
},
plugins: [
nodeResolve({ module: true }),
commonjs(),
sourcemaps(),
visualizer({ filename: "dist/node-stats.html", sourcemap: true }),
json()
]
}
export default config;