Product
Introducing Ruby Support in Socket
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
@sitecore-jss/sitecore-jss-manifest
Advanced tools
This module is provided as a part of Sitecore JavaScript Services Tech Preview. Please consult LICENSE.md file for details.
This module is provided as a part of Sitecore JavaScript Services Tech Preview. Please consult LICENSE.md file for details.
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.
Unfortunately, this doesn't play well with manifest generation when you use babel-register
as a compiler for your manifest spec 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.
FAQs
This module is provided as a part of Sitecore JavaScript Services. It contains disconnected-mode manifest generation capabilities.
The npm package @sitecore-jss/sitecore-jss-manifest receives a total of 6,882 weekly downloads. As such, @sitecore-jss/sitecore-jss-manifest popularity was classified as popular.
We found that @sitecore-jss/sitecore-jss-manifest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.