diff --git a/packages/@azure/arm-mariadb/package.json b/packages/@azure/arm-mariadb/package.json index f5c7db39937d..3f9362bf9979 100644 --- a/packages/@azure/arm-mariadb/package.json +++ b/packages/@azure/arm-mariadb/package.json @@ -4,8 +4,8 @@ "description": "MariaDBManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "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-mariadb/tsconfig.esm.json b/packages/@azure/arm-mariadb/tsconfig.esm.json new file mode 100644 index 000000000000..0b3aed07505c --- /dev/null +++ b/packages/@azure/arm-mariadb/tsconfig.esm.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "outDir": "./esm", + "module": "es6", + "target": "es5" + } +} diff --git a/packages/@azure/arm-mariadb/webpack.config.js b/packages/@azure/arm-mariadb/webpack.config.js new file mode 100644 index 000000000000..044d11a46d94 --- /dev/null +++ b/packages/@azure/arm-mariadb/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/mariaDBManagementClient.js', + devtool: 'source-map', + output: { + filename: 'mariaDBManagementClientBundle.js', + path: __dirname, + libraryTarget: 'var', + library: 'mariaDBManagementClient' + }, + // "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;