text: module.exports = {
  	entry: {
  		'aws-amplify-datastore.min': './lib-esm/index.js',
  	},
  	externals: ['@aws-amplify/pubsub'],
  	output: {
  		filename: '[name].js',
  		path: __dirname + '/dist',
  		library: 'aws_amplify_datastore',
  		libraryTarget: 'umd',
  		umdNamedDefine: true,
  		devtoolModuleFilenameTemplate: require('../aws-amplify/webpack-utils')
  			.devtoolModuleFilenameTemplate,
  	},
  	// Enable sourcemaps for debugging webpack's output.
  	devtool: 'source-map',
  	resolve: {
  		extensions: ['.mjs', '.js', '.json'],
  	},
  	mode: 'production',
  	module: {
  		rules: [
  			// All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
  			//{ enforce: 'pre', test: /\.js$/, loader: 'source-map-loader' },
  			{
  				test: /\.js?$/,
  				exclude: /node_modules/,
  				use: [
  					'babel-loader',
  					{
  						loader: 'babel-loader',
  						options: {
  							presets: ['@babel/preset-env'],
  						},
  					},
  				],
  			},
  		],
  	},
  };
  