Sha256: 1ad3a7a63e351acef9548a229e625a00e8a9a9c1db5bc8b60e742828e62af14a
Contents?: true
Size: 547 Bytes
Versions: 6
Compression:
Stored size: 547 Bytes
Contents
import { basename } from 'std/path/mod.ts' import { transformAsync } from '@babel/core' import solid from 'babel-preset-solid' import { setup } from '../utils.js' export default setup('solidjs', () => { return { onLoad: { filter: /\.jsx$/, async callback(args) { const source = await Deno.readTextFile(args.path) const { code } = await transformAsync(source, { presets: [solid], filename: basename(args.path) }) return { contents: code, loader: 'js' } } } } })
Version data entries
6 entries across 6 versions & 1 rubygems