From aaf4665658b2744a1cc01e66dc8d5c410a60410e Mon Sep 17 00:00:00 2001 From: Dan Schulte Date: Wed, 14 Nov 2018 15:33:27 -0800 Subject: [PATCH] Add rollup --- rollup.config.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 rollup.config.js diff --git a/rollup.config.js b/rollup.config.js new file mode 100644 index 0000000..1345642 --- /dev/null +++ b/rollup.config.js @@ -0,0 +1,25 @@ +import sourcemaps from "rollup-plugin-sourcemaps"; + +const banner = `/** @license ms-rest-azure-env + * 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} + */ +export default { + input: './dist/lib/msRestNodeAuth.js', + external: [ + "adal-node" + ], + output: { + file: "./dist/msRestNodeAuth.js", + format: "cjs", + sourcemap: true, + banner + }, + plugins: [ + sourcemaps() + ] +}; \ No newline at end of file