ApplicationInsights-JS/channels/offline-channel-js/rollup.config.js

39 строки
1.0 KiB
JavaScript

import { createConfig } from "../../rollup.base.config";
import { updateDistEsmFiles } from "../../tools/updateDistEsm/updateDistEsm";
const version = require("./package.json").version;
const outputName = "applicationinsights-offlinechannel-js";
const banner = [
"/*!",
` * Application Insights JavaScript SDK - Offline Channel, ${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: outputName,
outputName: outputName
},
browser: {
entryPoint: outputName,
outputName: outputName
}
},
["applicationinsights-offlinechannel-js"]
);