2023-04-06 23:57:43 +03:00
|
|
|
import { createConfig } from "../rollup.base.config";
|
2020-04-07 23:40:23 +03:00
|
|
|
import { updateDistEsmFiles } from "../tools/updateDistEsm/updateDistEsm";
|
2019-02-10 11:40:02 +03:00
|
|
|
|
2023-04-06 23:57:43 +03:00
|
|
|
const version = require("./package.json").version;
|
|
|
|
const browserEntryPointName = "Init";
|
|
|
|
const browserOutputName = "ai";
|
|
|
|
const entryPointName = "applicationinsights-web";
|
|
|
|
const outputName = "applicationinsights-web";
|
|
|
|
|
2019-02-10 11:40:02 +03:00
|
|
|
const banner = [
|
|
|
|
"/*!",
|
|
|
|
` * Application Insights JavaScript SDK - Web, ${version}`,
|
|
|
|
" * Copyright (c) Microsoft and contributors. All rights reserved.",
|
|
|
|
" */"
|
|
|
|
].join("\n");
|
|
|
|
|
2020-03-03 02:14:41 +03:00
|
|
|
const replaceValues = {
|
|
|
|
"// Copyright (c) Microsoft Corporation. All rights reserved.": "",
|
|
|
|
"// Licensed under the MIT License.": ""
|
|
|
|
};
|
|
|
|
|
2023-04-06 23:57:43 +03:00
|
|
|
updateDistEsmFiles(replaceValues, banner, true, true, "dist-es5");
|
2020-08-27 22:32:05 +03:00
|
|
|
|
2023-04-06 23:57:43 +03:00
|
|
|
export default createConfig(banner,
|
|
|
|
{
|
2023-05-06 00:24:04 +03:00
|
|
|
namespace: "Microsoft.ApplicationInsights",
|
2023-04-06 23:57:43 +03:00
|
|
|
version: version,
|
|
|
|
node: {
|
|
|
|
entryPoint: entryPointName,
|
|
|
|
outputName: outputName
|
2019-02-10 11:40:02 +03:00
|
|
|
},
|
2023-04-06 23:57:43 +03:00
|
|
|
browser: {
|
|
|
|
entryPoint: browserEntryPointName,
|
|
|
|
outputName: browserOutputName
|
|
|
|
}
|
|
|
|
},
|
|
|
|
[ "applicationinsights-web" ]);
|