ドキュメントを検索
Rspack は Solid をサポートするために 2 つのソリューションを提供します。
Rspack は babel-loader との互換性が優れているため、Rspack で Solid を使用するのは非常に簡単です。必要なのは babel-loader と Solid babel プリセットだけです。Rspack は、参考のために Solid のサンプルを提供しています。
/** @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'], }, }, ], }, ], }, }; module.exports = config;