-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathindex.js
More file actions
34 lines (32 loc) · 676 Bytes
/
index.js
File metadata and controls
34 lines (32 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
};
};