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

@cpro-js/craco-plugin-ui5-webcomponents

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cpro-js/craco-plugin-ui5-webcomponents

This is a [craco](https://github.com/gsoft-inc/craco) plugin that improves the bundling of [ui5-webcomponents](https://github.com/SAP/ui5-webcomponents) for [create-react-app](https://facebook.github.io/create-react-app/) version 4.

  • 0.2.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Craco Plugin UI5 Webcomponents

This is a craco plugin that improves the bundling of ui5-webcomponents for create-react-app version 4.

UI5 Webcomponents for react is made of several packages. Each package produces its own locale and language specific message bundles. By design each bundle is loaded asynchronously with the result of loading only the needed stuff. But this leads to several async requests in the browser which may impact your rendering time and increases the TTI (Time To Interactive).

This plugin reconfigures webpacks default code splitting mechanism to group all of those language and locale specific files of all ui5 webcomponent packages by language. The files are still loaded asynchronously but instead of fetching multiple files only one file will be loaded. The tradeoff is an increase in the resulting bundle size that will be loaded asynchronously.

Note: This plugin is only applied for production builds.

Installation

  1. Follow the craco Installation Instructions to install the craco package with modified scripts in your package.json.
  2. Create a craco.config.js file.
  3. Install @cpro-js/craco-plugin-ui5-webcomponents:
yarn add --dev @cpro-js/craco-plugin-ui5-webcomponents
  1. Initialize the craco plugin in your craco.config.js

craco.config.js

module.exports = {
  plugins: [
    {
      plugin: require("@cpro-js/craco-plugin-ui5-webcomponents"),
    }
  ]
};
  1. Build your app for production.

FAQs

Package last updated on 02 Jun 2022

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