ApplicationInsights-JS/AISKU/rollup.config.js

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");
2020-08-27 22:32:05 +03:00
export default createConfig(banner,
{
namespace: "Microsoft.ApplicationInsights",
version: version,
node: {
entryPoint: entryPointName,
outputName: outputName
},
browser: {
entryPoint: browserEntryPointName,
outputName: browserOutputName
}
},
[ "applicationinsights-web" ]);