babel-preset-solid 1.7.4 → 1.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +34 -34
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,34 +1,34 @@
1
- const jsxTransform = require("babel-plugin-jsx-dom-expressions");
2
-
3
- module.exports = function (context, options = {}) {
4
- const plugins = [
5
- [
6
- jsxTransform,
7
- Object.assign(
8
- {
9
- moduleName: "solid-js/web",
10
- builtIns: [
11
- "For",
12
- "Show",
13
- "Switch",
14
- "Match",
15
- "Suspense",
16
- "SuspenseList",
17
- "Portal",
18
- "Index",
19
- "Dynamic",
20
- "ErrorBoundary"
21
- ],
22
- contextToCustomElements: true,
23
- wrapConditionals: true,
24
- generate: "dom"
25
- },
26
- options
27
- )
28
- ]
29
- ];
30
-
31
- return {
32
- plugins
33
- };
34
- };
1
+ const jsxTransform = require("babel-plugin-jsx-dom-expressions");
2
+
3
+ module.exports = function (context, options = {}) {
4
+ const plugins = [
5
+ [
6
+ jsxTransform,
7
+ Object.assign(
8
+ {
9
+ moduleName: "solid-js/web",
10
+ builtIns: [
11
+ "For",
12
+ "Show",
13
+ "Switch",
14
+ "Match",
15
+ "Suspense",
16
+ "SuspenseList",
17
+ "Portal",
18
+ "Index",
19
+ "Dynamic",
20
+ "ErrorBoundary"
21
+ ],
22
+ contextToCustomElements: true,
23
+ wrapConditionals: true,
24
+ generate: "dom"
25
+ },
26
+ options
27
+ )
28
+ ]
29
+ ];
30
+
31
+ return {
32
+ plugins
33
+ };
34
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-preset-solid",
3
- "version": "1.7.4",
3
+ "version": "1.7.7",
4
4
  "description": "Babel preset to transform JSX for Solid.js",
5
5
  "author": "Ryan Carniato <ryansolid@gmail.com>",
6
6
  "homepage": "https://github.com/solidjs/solid/blob/main/packages/babel-preset-solid#readme",