Need to add a Babel plugin to solid start

Hi Solid Start Team, I need to add the following babel plugin to a solid start project: https://babeljs.io/docs/babel-plugin-proposal-decorators I cannot figure out how to add it to the app.config.ts file, SOS
1 Reply
peerreynders
peerreynders6mo ago
The documentation shows there is a solid parameter (options): So my first guess would be:
import { defineConfig } from '@solidjs/start/config';

export default defineConfig({
solid: {
babel: {
plugins: [['@babel/plugin-proposal-decorators', { version: '2023-11' }]],
},
},
});
import { defineConfig } from '@solidjs/start/config';

export default defineConfig({
solid: {
babel: {
plugins: [['@babel/plugin-proposal-decorators', { version: '2023-11' }]],
},
},
});
GitHub
GitHub - solidjs/vite-plugin-solid: A simple integration to run sol...
A simple integration to run solid-js with vite. Contribute to solidjs/vite-plugin-solid development by creating an account on GitHub.
Want results from more Discord servers?
Add your server