UNPKG

@azure/synapse-monitoring

Version:
42 lines (39 loc) 1.19 kB
import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; import sourcemaps from "rollup-plugin-sourcemaps"; import cjs from "@rollup/plugin-commonjs"; /** * @type {rollup.RollupFileOptions} */ const config = { input: "./dist-esm/monitoringClient.js", external: ["@azure/core-http", "@azure/core-arm"], output: { file: "./dist/index.js", format: "cjs", name: "Azure.SynapseMonitoring", sourcemap: true, globals: { "@azure/core-http": "coreHttp", "@azure/core-arm": "coreArm" }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ ` }, plugins: [ nodeResolve({ module: true }), sourcemaps(), cjs({ namedExports: { assert: ["ok", "deepEqual", "equal", "fail", "deepStrictEqual", "strictEqual"], "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ] }; export default config;