Skip to main content
Module

x/babel_preset_solid/index.js

A declarative, efficient, and flexible JavaScript library for building user interfaces.
Go to Latest
File
const jsxTransform = require("babel-plugin-jsx-dom-expressions");
module.exports = function (context, options = {}) { const plugins = [ [ jsxTransform, Object.assign( { moduleName: "solid-js/web", builtIns: [ "For", "Show", "Switch", "Match", "Suspense", "SuspenseList", "Portal", "Index", "Dynamic", "ErrorBoundary" ], contextToCustomElements: true, wrapConditionals: true, generate: "dom" }, options ) ] ];
return { plugins };};