34 строки
861 B
JavaScript
34 строки
861 B
JavaScript
import nodeResolve from "rollup-plugin-node-resolve";
|
|
import visualizer from "rollup-plugin-visualizer";
|
|
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
|
|
const banner = `/** @license ms-rest-azure-js
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*/`;
|
|
|
|
/**
|
|
* @type {import('rollup').RollupFileOptions}
|
|
*/
|
|
const config = {
|
|
input: './es/lib/msRestAzure.js',
|
|
external: ["@azure/ms-rest-js"],
|
|
output: {
|
|
file: "./dist/msRestAzure.js",
|
|
format: "umd",
|
|
name: "msRestAzure",
|
|
sourcemap: true,
|
|
globals: {
|
|
"@azure/ms-rest-js": "msRest"
|
|
},
|
|
banner
|
|
},
|
|
plugins: [
|
|
nodeResolve({ module: true }),
|
|
sourcemaps(),
|
|
visualizer({ filename: "dist/node-stats.html", sourcemap: true })
|
|
]
|
|
}
|
|
|
|
export default config;
|