![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@sifi/shared-ui
Advanced tools
This package contains React components for SideShift UIs. Used by packages:
frontend
widget
(currently widget is in frontend
)Scrips for development can be found in packages.json
as scripts. For development we are using storybook
which works well with HMR and makes easy to test, develop and maintain UI components. To run use:
$ yarn workspace @sideshift/shared-ui dev
Tests are written using jest
and testing-library
. To run tests use:
$ yarn workspace @sideshift/shared-ui test
Linting rules are the same as frontend
package have. To run linter use:
$ yarn workspace @sideshift/shared-ui lint
For building the project, we are using rollup
instead of webpack
(See Architecture
section). To build project run:
$ yarn workspace @sideshift/shared-ui build
The package tries to manage it's own dependencies independently from the monorepo. For generating configs yarn workspace @sideshift/tools monorepo-update
is used as well as in other packages, but configs are trying to not extend anything. This can help us to develop faster and separate it easily once we want to. The project uses Rollup instead of Webpack because it's better for building libraries.
We should use components from here wherewer we can. Once we are starting to separate widget
from frontend
, it should build it's UI based on this package. Also we can build new (or while refactoring) frontend
UIs using this package.
FAQs
## Purpose
We found that @sifi/shared-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.