babel-preset-njs
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -105,6 +105,3 @@ const { declare } = require('@babel/helper-plugin-utils') | ||
}], | ||
[transformBlockScoping, { | ||
// Throw when it's impossible to rewrite let/const without adding an additional function. | ||
throwIfClosureRequired: true, | ||
}], | ||
[transformBlockScoping], | ||
[transformClasses, { | ||
@@ -111,0 +108,0 @@ // This is more performant, but it might produce unexpected results in some (corner) cases. |
{ | ||
"name": "babel-preset-njs", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A Babel preset for njs - NGINX JavaScript.", | ||
@@ -5,0 +5,0 @@ "author": "Jakub Jirutka <jakub@jirutka.cz>", |
@@ -9,2 +9,9 @@ A [Babel](https://babeljs.io) | ||
**TIP:** Take a look at | ||
[njs-typescript-starter](https://github.com/jirutka/njs-typescript-starter) | ||
for a complete starter template for developing njs scripts for | ||
[NGINX](https://nginx.org) server in | ||
[TypeScript](https://www.typescriptlang.org) (including integration | ||
tests). | ||
## Installation | ||
@@ -100,2 +107,4 @@ | ||
It sets the following plugin options: | ||
- [async-to-promises](https://github.com/rpetrich/babel-plugin-transform-async-to-promises): | ||
@@ -157,3 +166,3 @@ `externalHelpers`, `inlineHelpers` | ||
The list of included Babel plugins is available | ||
[here](https://github.com/jirutka/babel-preset-njs/blob/v0.2.0/README.adoc#plugins). | ||
[here](https://github.com/jirutka/babel-preset-njs/blob/v0.2.1/README.adoc#plugins). | ||
@@ -160,0 +169,0 @@ ## References |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
25900
175
139