MCPcopy Index your code
hub / github.com/developit/htm / compile

Function compile

test/babel-transform-jsx.test.mjs:4–14  ·  view source on GitHub ↗
(code, { plugins = [], ...options } = {})

Source from the content-addressed store, hash-verified

2import transformJsxToHtmPlugin from 'babel-plugin-transform-jsx-to-htm';
3
4function compile(code, { plugins = [], ...options } = {}) {
5 return transform(code, {
6 babelrc: false,
7 configFile: false,
8 sourceType: 'module',
9 plugins: [
10 ...plugins,
11 [transformJsxToHtmPlugin, options]
12 ]
13 }).code;
14}
15
16describe('babel-plugin-transform-jsx-to-htm', () => {
17 describe('import', () => {

Callers 1

Calls 1

transformFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…