@sitecore-jss/sitecore-pipelines
Advanced tools
Comparing version 11.0.0-alpha.0 to 11.0.0
{ | ||
"name": "@sitecore-jss/sitecore-pipelines", | ||
"version": "11.0.0-alpha.0", | ||
"version": "11.0.0", | ||
"description": "Sitecore Pipelines in JavaScript.", | ||
@@ -46,3 +46,3 @@ "main": "dist/index.js", | ||
"types": "types/index.d.ts", | ||
"gitHead": "96e06d70e432a4d530450f3955247f5a037c6295" | ||
"gitHead": "ae2766704a7edd3a746cdc3848a4f32cd70d2c1a" | ||
} |
@@ -1,20 +0,5 @@ | ||
# Sitecore JavaScript Services pipeline utilities | ||
# Sitecore JavaScript Services Pipelines | ||
## Known Issues / Limitations | ||
* Only works with node.js, will not run in browser-targeted code | ||
* Incompatible with a `babel` config that uses `babel-preset-env` with the `"modules": false` option, e.g.: | ||
``` | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"modules": false | ||
} | ||
], | ||
] | ||
``` | ||
The issue is that `"modules": false` instructs Babel to _not_ transpile your ES6+ modules to a format like `CommonJS`, which typically allows Webpack to apply tree shaking to your code. | ||
This module is provided as a part of Sitecore JavaScript Services. It contains a JavaScript implementation of the Sitecore pipeline pattern that is used to allow customizing the disconnected manifest. | ||
Unfortunately, this doesn't play well with file-based pipelines when you use `babel-register` as a compiler for your pipeline processor files. `babel-register` transpiles your spec files on-the-fly and uses whatever Babel configuration it can find. Therefore, if you have a single `.babelrc` file or define your Babel config in `package.json`, then `babel-register` will use that config. And if that config uses `bable-preset-env` with `"modules": false`, then your spec files won't be transpiled. | ||
The workaround at the moment, assuming you're using Webpack, is to move your Webpack-specific Babel config into your `babel-loader` options. Then use `.babelrc` (or equivalent) for other environments like unit testing and manifest generation. | ||
Consult the [Sitecore JSS documentation](https://jss.sitecore.net) for further details. |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
53074
6