diff --git a/packages/@azure/arm-marketplaceordering/package.json b/packages/@azure/arm-marketplaceordering/package.json index be392ca3710b..00968bfe370c 100644 --- a/packages/@azure/arm-marketplaceordering/package.json +++ b/packages/@azure/arm-marketplaceordering/package.json @@ -4,8 +4,8 @@ "description": "MarketplaceOrderingAgreements Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.166", - "ms-rest-js": "^1.0.439", + "ms-rest-azure-js": "^1.0.172", + "ms-rest-js": "^1.0.443", "tslib": "^1.9.3" }, "keywords": [ diff --git a/packages/@azure/arm-marketplaceordering/tsconfig.esm.json b/packages/@azure/arm-marketplaceordering/tsconfig.esm.json new file mode 100644 index 000000000000..0b3aed07505c --- /dev/null +++ b/packages/@azure/arm-marketplaceordering/tsconfig.esm.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "outDir": "./esm", + "module": "es6", + "target": "es5" + } +} diff --git a/packages/@azure/arm-marketplaceordering/webpack.config.js b/packages/@azure/arm-marketplaceordering/webpack.config.js new file mode 100644 index 000000000000..c639a9495f77 --- /dev/null +++ b/packages/@azure/arm-marketplaceordering/webpack.config.js @@ -0,0 +1,30 @@ +// This is a template webpack config file with minimal configuration. +// Users are free to create their own webpack configuration files in their application. +const path = require('path'); + +/** + * @type {import('webpack').Configuration} + */ +const config = { + mode: 'production', + entry: './esm/marketplaceOrderingAgreements.js', + devtool: 'source-map', + output: { + filename: 'marketplaceOrderingAgreementsBundle.js', + path: __dirname, + libraryTarget: 'var', + library: 'marketplaceOrderingAgreements' + }, + // "ms-rest-js" and "ms-rest-azure-js" are dependencies of this library. + // Customer is expected to import/include this library in browser javascript + // (probably using the script tag in their html file). + externals: { + "ms-rest-js": "msRest", + "ms-rest-azure-js": "msRestAzure" + }, + resolve: { + extensions: [".tsx", ".ts", ".js"] + } +}; + +module.exports = config;