//* module.exports = { module: { rules: [ // all files with a `.ts`, `.cts`, `.mts` or `.tsx` extension will be handled by `ts-loader` { test: /\.ts(x?)$/, exclude: /node_modules/, use: [ { loader: "babel-loader", options: { plugins: [ // ["@babel/plugin-proposal-decorators", { "version": "2023-01" }], ], presets: [ ["solid", { generate: "ssr", hydratable: true }], ], }, }, { loader: "ts-loader", }, ], /* test: /\.[j|t]sx?$/, loader: "babel-loader", exclude: [/node_modules/, /public/], options: { plugins: [ ["@babel/plugin-proposal-decorators", { "version": "2023-01" }], ], presets: [ "@babel/preset-typescript", ["solid", { generate: "ssr", hydratable: true }], ], }, */ }, // { test: /\.([cm]?ts|tsx)$/, loader: "ts-loader" }, ], }, }; // */ /* const path = require("path"); module.exports = { entry: "./src/main.ts", module: { rules: [ { test: /\.tsx?$/, use: "ts-loader", exclude: /node_modules/, }, ], }, resolve: { extensions: [".tsx", ".ts", ".js"], }, output: { filename: "bundle.js", path: path.resolve(__dirname, "dist"), }, }; */