@idio/frontend
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -10,5 +10,5 @@ const { collect } = require('catchment'); | ||
* The Middleware To Serve Front-End JavaScript. | ||
* @param {Config} [config] Options for the program. | ||
* @param {boolean} [config.shouldRun=true] A boolean option. Default `true`. | ||
* @param {string} config.text A text to return. | ||
* @param {FrontendConfig} [config] Options for the middleware. | ||
* @param {string} [config.directory="frontend"] The directory from which to serve files. Default `frontend`. | ||
* @param {string} [config.pragma="import { h } from 'preact'"] The pragma function to import. This enables to skip writing `h` at the beginning of each file. JSX will be transpiled to have `h` pragma, therefore to use React it's possible to do `import { createElement: h } from 'react'`. Default `import { h } from 'preact'`. | ||
*/ | ||
@@ -47,3 +47,3 @@ async function frontend(config = {}) { | ||
if (/\.jsx$/.test(path)) { | ||
body = await transpileJSX(body, { quoteProps: 1 }) | ||
body = await transpileJSX(body) | ||
if (pragma) body = `${pragma}\n${body}` | ||
@@ -50,0 +50,0 @@ } |
@@ -0,1 +1,7 @@ | ||
## 7 February 2019 | ||
### 1.2.3 | ||
- [package] Fix JSDoc documentation and up `@a-la/jsx`. | ||
## 5 February 2019 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "@idio/frontend", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "The Middleware To Serve Front-End JavaScript.", | ||
"main": "build", | ||
"main": "build/index.js", | ||
"module": "src/index.js", | ||
"scripts": { | ||
@@ -23,3 +24,4 @@ "t": "zoroaster -a", | ||
"files": [ | ||
"build" | ||
"build", | ||
"src" | ||
], | ||
@@ -56,3 +58,3 @@ "repository": { | ||
"dependencies": { | ||
"@a-la/jsx": "1.2.5", | ||
"@a-la/jsx": "1.3.1", | ||
"@wrote/read": "1.0.2", | ||
@@ -59,0 +61,0 @@ "catchment": "3.2.2", |
17184
6
244
4
+ Added@a-la/jsx@1.3.1(transitive)
- Removed@a-la/jsx@1.2.5(transitive)
- Removed@artdeco/clean-stack@1.0.0(transitive)
- Removedrestream@3.4.1(transitive)
Updated@a-la/jsx@1.3.1