Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@sitecore-jss/sitecore-pipelines

Package Overview
Dependencies
Maintainers
4
Versions
269
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sitecore-jss/sitecore-pipelines

Sitecore Pipelines in JavaScript.


Version published
Weekly downloads
6.7K
decreased by-14.29%
Maintainers
4
Weekly downloads
 
Created
Source

Sitecore JavaScript Services pipeline utilities

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.

    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.

FAQs

Package last updated on 20 Apr 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc