Skip to content

Commit a672f7d

Browse files
committed
update to 0.6.0
1 parent 3994866 commit a672f7d

File tree

13 files changed

+1278
-731
lines changed

13 files changed

+1278
-731
lines changed

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
assets/
22
documentation/
33
src/
4-
rollup.config.js
4+
*.config.js
55
test/
66
types/tsconfig.tsbuildinfo
77
coverage/

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,21 +128,15 @@ Solid's rendering is done by the [DOM Expressions](https://github.com/ryansolid/
128128
To get setup add this babel plugin config to your .babelrc, webpack, or rollup config:
129129

130130
```js
131-
"plugins": ["jsx-dom-expressions"]
132-
```
133-
134-
And include at the top of your files:
135-
136-
```js
137-
import { r } from 'solid-js/dom'
131+
"plugins": [["jsx-dom-expressions", {moduleName: 'solid-js/dom'}]]
138132
```
139133

140134
Alternatively in non-compiled environments you can use Tagged Template Literals [Lit DOM Expressions](https://github.com/ryansolid/lit-dom-expressions) or even HyperScript with [Hyper DOM Expressions](https://github.com/ryansolid/hyper-dom-expressions).
141135

142136
For convenience Solid exports interfaces to runtimes for these as:
143137
```js
144-
import { h } from 'solid-js/h';
145-
import { html } from 'solid-js/html'
138+
import h from 'solid-js/h';
139+
import html from 'solid-js/html'
146140
```
147141
Remember you still need to install the library separately for these to work.
148142

dom-expressions.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
output: 'src/dom/index.js',
3+
variables: {
4+
imports: [ `import S from 's-js'` ],
5+
computed: 'S',
6+
sample: 'S.sample',
7+
root: 'S.root',
8+
cleanup: 'S.cleanup'
9+
}
10+
}

0 commit comments

Comments
 (0)