@babel/preset-modules
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -21,3 +21,3 @@ "use strict"; | ||
return { | ||
plugins: [_path.default.resolve(__dirname, "./plugins/transform-edge-default-parameters"), _path.default.resolve(__dirname, "./plugins/transform-tagged-template-caching"), _path.default.resolve(__dirname, "./plugins/transform-jsx-spread"), _path.default.resolve(__dirname, "./plugins/transform-safari-for-shadowing"), _path.default.resolve(__dirname, "./plugins/transform-async-arrows-in-class"), !loose && _path.default.resolve(__dirname, "./plugins/transform-edge-function-name"), // Proposals | ||
plugins: [_path.default.resolve(__dirname, "./plugins/transform-edge-default-parameters"), _path.default.resolve(__dirname, "./plugins/transform-tagged-template-caching"), _path.default.resolve(__dirname, "./plugins/transform-jsx-spread"), _path.default.resolve(__dirname, "./plugins/transform-safari-for-shadowing"), _path.default.resolve(__dirname, "./plugins/transform-safari-block-shadowing"), _path.default.resolve(__dirname, "./plugins/transform-async-arrows-in-class"), !loose && _path.default.resolve(__dirname, "./plugins/transform-edge-function-name"), // Proposals | ||
require.resolve("@babel/plugin-proposal-unicode-property-regex"), require.resolve("@babel/plugin-transform-dotall-regex")].filter(Boolean) | ||
@@ -24,0 +24,0 @@ }; |
{ | ||
"name": "@babel/preset-modules", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A Babel preset that targets modern browsers by fixing engine bugs.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -7,2 +7,11 @@ # `@babel/preset-modules` | ||
This preset is only useful for browsers. You can serve the output to modern browsers while still supporting older browsers using the [module/nomodule pattern](https://philipwalton.com/articles/deploying-es2015-code-in-production-today/): | ||
```html | ||
<!-- transpiled with preset-modules: --> | ||
<script type="module" src="modern.js"></script> | ||
<!-- transpiled with preset-env: --> | ||
<script nomodule src="legacy.js"></script> | ||
``` | ||
### Features Supported | ||
@@ -9,0 +18,0 @@ |
@@ -20,2 +20,3 @@ import path from "path"; | ||
path.resolve(__dirname, "./plugins/transform-safari-for-shadowing"), | ||
path.resolve(__dirname, "./plugins/transform-safari-block-shadowing"), | ||
path.resolve(__dirname, "./plugins/transform-async-arrows-in-class"), | ||
@@ -22,0 +23,0 @@ !loose && |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37184
18
708
169