{"size": 1907, "ext": "js", "max_stars_repo_path": "scripts/alert.dev.js", "max_stars_repo_name": "flyFatSeal/react-components", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "scripts/alert.dev.js", "max_issues_repo_name": "flyFatSeal/react-components", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "scripts/alert.dev.js", "max_forks_repo_name": "flyFatSeal/react-components", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.8375, "max_line_length": 60, "alphanum_fraction": 0.3072889355}
// @ts-check
const { join } = require("path");
const base = (path) => join(__dirname, "../", path);

/**
 * @type {import("webpack").Configuration}
 */
module.exports = {
    mode: "development",
    entry: {
        alert2: "./src/haiwell/Alert/index.tsx",
    },
    output: {
        library: '[name]',
        libraryTarget: "var",
        filename: '[name].dev.js',
        path: base("./dist"),
    },

    externals: {
        "react": "React",
        "react-dom": "ReactDOM",
    },

    optimization: {
        minimize: false
    },

    devtool: "inline-source-map",
    module: {
        rules: [
            {
                test: /\.tsx?$/,
                loader: "ts-loader",
                exclude: /node_modules/,
                options: {
                    transpileOnly: true,
                    configFile: base("./tsconfig.dev.json"),
                },
            },
            {
                test: /\.less?$/,
                use: [
                    {
                        loader: "style-loader",
                    },
                    {
                        loader: "css-loader",
                    },
                    {
                        loader: "less-loader",
                        options: {
                            lessOptions: {
                                javascriptEnabled: true
                            }
                        }
                    },
                ],
                exclude: /node_modules/,
            },
            {
                test: /\.(png|jpg|gif)$/i,
                use: [
                    {
                        loader: 'url-loader',
                        options: {
                            limit: 8192,
                        },
                    },
                ],
            },
        ],
    },

    resolve: {
        extensions: ['.tsx', '.ts', '.js'],
    },
};

