{"size": 745, "ext": "js", "max_stars_repo_path": "webpack.common.js", "max_stars_repo_name": "nik3daz/spin2win", "max_stars_repo_stars_event_min_datetime": "2016-08-08T15:34:03.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-12T17:15:27.000Z", "max_issues_repo_path": "webpack.common.js", "max_issues_repo_name": "nik3daz/spin2win", "max_issues_repo_issues_event_min_datetime": "2018-04-13T15:47:11.000Z", "max_issues_repo_issues_event_max_datetime": "2019-11-17T10:33:21.000Z", "max_forks_repo_path": "webpack.common.js", "max_forks_repo_name": "nik3daz/spin2win", "max_forks_repo_forks_event_min_datetime": "2016-11-12T00:12:58.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-02T14:03:43.000Z"}
{"max_stars_count": 26, "max_issues_count": 2, "max_forks_count": 7, "avg_line_length": 20.6944444444, "max_line_length": 77, "alphanum_fraction": 0.6161073826}
const path = require('path');
const webpack = require('webpack');
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

module.exports = {
	entry: {
		'phoenix.js': './src/phoenix.ts',
		'phoenix.debug.js': './src/phoenix.ts',
	},
	output: {
		path: path.resolve(__dirname, 'out'),
		filename: '[name]',
	},
	resolve: {
		extensions: ['.tsx', '.ts', '.js'],
	},
	module: {
		rules: [
			{
				test: /\.tsx?$/,
				loader: 'ts-loader',
				include: path.resolve(__dirname, 'src'),
				options: {
					transpileOnly: true,
				},
			},
		],
	},
	plugins: [
		new webpack.ProgressPlugin(),
		new CleanWebpackPlugin(),
		new ForkTsCheckerWebpackPlugin(),
	],
};
