-
Notifications
You must be signed in to change notification settings - Fork 235
/
rollup.config.js
37 lines (32 loc) · 921 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 nodeResolve from "@rollup/plugin-node-resolve";
import { updateDistEsmFiles } from "../../../tools/updateDistEsm/updateDistEsm";
const version = require("./package.json").version;
const outputName = "ai-test-framework";
const banner = [
"/*!",
` * Application Insights JavaScript SDK - Internal Test Framework, ${version}`,
" * Copyright (c) Microsoft and contributors. All rights reserved.",
" */"
].join("\n");
const nodeUmdRollupConfigFactory = () => {
const nodeRollupConfig = {
input: `dist-esm/src/ai-test-framework.js`,
output: {
file: `dist/${outputName}.js`,
banner: banner,
format: "umd",
name: "Microsoft.ApplicationInsights",
extend: true,
freeze: false,
sourcemap: true
},
plugins: [
nodeResolve()
]
};
return nodeRollupConfig;
}
updateDistEsmFiles({}, banner);
export default [
nodeUmdRollupConfigFactory(),
];