Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
Merge 9068a48 into 793cc06
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Sep 27, 2019
2 parents 793cc06 + 9068a48 commit 7c918f0
Show file tree
Hide file tree
Showing 72 changed files with 2,387 additions and 184 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,18 @@ The use of cloneNode improves repeat insert performance and precompilation reduc
### moduleName (required)
The name of the runtime module to import the methods from.

### generate
The output mode of the compiler. Can be "dom"(default), "ssr", or "hydrate". "dom" is standard output. "ssr" is for server side rendering that is hydrateable. And "hydrate" is for the client that hydrates the previously server rendered markup.s

### delegateEvents
Boolean to indicate whether to enable automatic event delegation on camelCase.

### contextToCustomElements
Boolean indicates whether to set current render context on Custom Elements and slots. Useful for seemless Context API with Web Components.

### alwaysWrap
Removes the need for `{( )}` syntax. All expressions will be dynamic. This can lead to severe performance degradation. Use at your own risk.

### alwaysCreateComponents
Always use createComponent method instead of just calling the function. Needed to support class components.

Expand Down Expand Up @@ -161,6 +167,7 @@ Components may have children. This is available as props.children. It may be a n
This plugin also supports JSX Fragments with `<></>` notation. These will be compiled to arrays. The fragment syntax provides the convenience of being able to use the template syntax to wrap expressions.

## SVG

There is basic SVG support with this library. Most element/attributes should work but no support for namespaces yet.
## Acknowledgements

Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "babel-plugin-jsx-dom-expressions",
"description": "A JSX to DOM plugin that wraps expressions for fine grained change detection",
"version": "0.11.6",
"version": "0.12.0",
"author": "Ryan Carniato",
"license": "MIT",
"repository": {
Expand All @@ -21,7 +21,7 @@
"@babel/core": "7.6.0",
"babel-plugin-tester": "^7.0.1",
"coveralls": "3.0.6",
"dom-expressions": "~0.11.3",
"dom-expressions": "~0.11.4",
"jest": "^24.9.0",
"rollup": "^1.21.4",
"rollup-plugin-node-resolve": "^5.2.0"
Expand Down

0 comments on commit 7c918f0

Please sign in to comment.