/** @type {import('@rspack/cli').Configuration} */
const config = {
context: __dirname,
entry: {
main: './src/index.jsx',
},
module: {
rules: [
{
test: /\.jsx$/,
use: [
{
loader: 'babel-loader',
options: {
presets: [['solid']],
plugins: ['solid-refresh/babel'],
},
},
],
},
],
},
builtins: {
html: [
{
template: './index.html',
},
],
},
};
module.exports = config;