@babel/preset-stage-0
Advanced tools
Comparing version 7.0.0 to 7.8.0
{ | ||
"name": "@babel/preset-stage-0", | ||
"version": "7.0.0", | ||
"version": "7.8.0", | ||
"description": "Babel preset for stage 0 plugins", | ||
@@ -8,4 +8,9 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"license": "MIT", | ||
"type": "commonjs", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-0", | ||
"main": "lib/index.js" | ||
"main": "lib/index.js", | ||
"gitHead": "2486615a74580283c49475d66067bd7fcab3330e" | ||
} |
@@ -11,3 +11,3 @@ # @babel/preset-stage-0 | ||
```json | ||
```jsonc | ||
{ | ||
@@ -36,3 +36,3 @@ "plugins": [ | ||
"@babel/plugin-syntax-import-meta", | ||
["@babel/plugin-proposal-class-properties", { "loose": false }], | ||
["@babel/plugin-proposal-class-properties", { "loose": true }], | ||
"@babel/plugin-proposal-json-strings" | ||
@@ -53,3 +53,3 @@ ] | ||
[require("@babel/plugin-proposal-decorators"), { "legacy": true }], | ||
[require("@babel/plugin-proposal-class-properties"), { "loose": false }], | ||
[require("@babel/plugin-proposal-class-properties"), { "loose": true }], | ||
], | ||
@@ -62,1 +62,8 @@ presets: [ | ||
``` | ||
**NOTE: Compatibility between `@babel/plugin-proposal-class-properties` and `@babel/plugin-proposal-decorators`** | ||
If you are including your plugins manually and using `@babel/plugin-proposal-class-properties`, make sure that `@babel/plugin-proposal-decorators` comes before `@babel/plugin-proposal-class-properties`. | ||
When using the `legacy: true` option of `@babel/plugin-proposal-decorators`, `@babel/plugin-proposal-class-properties` must be used in `loose: true` mode. | ||
If you are not using `@babel/plugin-proposal-decorators`, `loose` mode is not needed. |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6267
65
1