packages/solid/test.js
// Babel transform applied to [j|t]sx? files when imported
Babel transform applied to [j|t]sx. files when imported
Babel transform applied to [ j|t ] sx . files when imported
function transform({ filename, source }) {
  const { code } = transformSync(source, {
    filename,
    presets: [
      [require('@babel/preset-typescript')],
      [require('babel-preset-solid'), { generate: 'ssr', hydrate: true }],
    ],
    plugins: [[require('@babel/plugin-transform-modules-commonjs')]],
  })
  return { code }
}
function transform ( { filename , source } ) { const { code } = transformSync ( source , { filename , presets : [ [ require ( '@babel/preset-typescript' ) ] , [ require ( 'babel-preset-solid' ) , { generate : 'ssr' , hydrate : true } ] , ] , plugins : [ [ require ( '@babel/plugin-transform-modules-commonjs' ) ] ] , } ) return { code } }
Babel transform applied to [j|t]sx?
Babel transform applied to [ j|t ] sx?