37 строки
1.0 KiB
JavaScript
37 строки
1.0 KiB
JavaScript
import { createConfig } from "../rollup.base.config";
|
|
import { updateDistEsmFiles } from "../tools/updateDistEsm/updateDistEsm";
|
|
|
|
const version = require("./package.json").version;
|
|
const browserEntryPointName = "Init";
|
|
const browserOutputName = "ai";
|
|
const entryPointName = "applicationinsights-web";
|
|
const outputName = "applicationinsights-web";
|
|
|
|
const banner = [
|
|
"/*!",
|
|
` * Application Insights JavaScript SDK - Web, ${version}`,
|
|
" * Copyright (c) Microsoft and contributors. All rights reserved.",
|
|
" */"
|
|
].join("\n");
|
|
|
|
const replaceValues = {
|
|
"// Copyright (c) Microsoft Corporation. All rights reserved.": "",
|
|
"// Licensed under the MIT License.": ""
|
|
};
|
|
|
|
updateDistEsmFiles(replaceValues, banner, true, true, "dist-es5");
|
|
|
|
export default createConfig(banner,
|
|
{
|
|
namespace: "Microsoft.ApplicationInsights",
|
|
version: version,
|
|
node: {
|
|
entryPoint: entryPointName,
|
|
outputName: outputName
|
|
},
|
|
browser: {
|
|
entryPoint: browserEntryPointName,
|
|
outputName: browserOutputName
|
|
}
|
|
},
|
|
[ "applicationinsights-web" ]); |