{"size": 1005, "ext": "js", "max_stars_repo_path": "packages/example/webpack.config.js", "max_stars_repo_name": "Bhaskers-Blu-Org2/redux-dag-history", "max_stars_repo_stars_event_min_datetime": "2017-01-20T00:30:46.000Z", "max_stars_repo_stars_event_max_datetime": "2019-04-16T11:05:12.000Z", "max_issues_repo_path": "packages/example/webpack.config.js", "max_issues_repo_name": "microsoft/redux-dag-history", "max_issues_repo_issues_event_min_datetime": "2017-01-30T18:36:41.000Z", "max_issues_repo_issues_event_max_datetime": "2018-03-14T22:07:52.000Z", "max_forks_repo_path": "packages/example/webpack.config.js", "max_forks_repo_name": "Microsoft/redux-dag-history", "max_forks_repo_forks_event_min_datetime": "2017-01-29T02:52:40.000Z", "max_forks_repo_forks_event_max_datetime": "2018-08-09T14:48:14.000Z"}
{"max_stars_count": 310, "max_issues_count": 29, "max_forks_count": 8, "avg_line_length": 24.512195122, "max_line_length": 77, "alphanum_fraction": 0.6447761194}
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CircularDependencyPlugin = require('circular-dependency-plugin')
const path = require('path')

module.exports = {
	devtool: 'source-map',
	context: path.join(__dirname),
	entry: {
		javascript: './src/app.tsx',
	},
	output: {
		path: path.join(__dirname, 'dist'),
		filename: 'appbundle.js',
	},
	resolve: {
		extensions: ['.js', '.jsx', '.ts', '.tsx'],
		alias: {
			'react/lib/ReactMount': 'react-dom/lib/ReactMount',
		},
	},
	plugins: [
		new HtmlWebpackPlugin({
			title: 'DAG History Component Example',
		}),
		new webpack.NoEmitOnErrorsPlugin(),
		new webpack.ProvidePlugin({
			saveAs: 'imports?this=>global!exports?global.saveAs!filesaver.js',
		}),
		new CircularDependencyPlugin({
			failsOnError: true,
		}),
	],
	module: {
		rules: [
			{ test: /\.css$/, use: ['style-loader', 'css-loader', 'postcss-loader'] },
			{ test: /\.ts(x|)/, use: ['ts-loader'], exclude: /node_modules/ },
		],
	},
}
