![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.
One package to rule them all, one entry point to bind them.
# yarn
yarn add remirror @remirror/pm
# pnpm
pnpm add remirror @remirror/pm
# npm
npm install remirror @remirror/pm
The remirror
package will automatically install the @remirror/pm
package for you. You only need to install it yourself if you'd like to ensure consistent versions of the prosemirror-*
libraries when importing from @remirror/pm/state
instead of prosemirror-state
or @remirror/pm/model
instead of prosemirror-model
.
Rather than installing multiple scoped packages, the remirror
package is a gateway to using all the goodness that remirror provides while minimising your bundle size.
The following creates a controlled editor with React.
import React from 'react';
import { SocialPreset } from 'remirror/extensions';
import { Remirror, SocialEmojiComponent, useRemirror } from '@remirror/react';
const EditorWrapper = () => {
const socialPreset = new SocialPreset();
const { state, onChange } = useRemirror({ extensions: () => [...socialPreset()] });
return (
<Remirror state={state} onChange={onChange} manager={manager} autoRender={true}>
<SocialEmojiComponent />
</Remirror>
);
};
These are the entry points available through the remirror
package.
remirror
- All the core functionality available through @remirror/core
.remirror/extensions
- All the core extensions and presets made available through the main remirror
repository. This doesn't include any framework specific extensions and presets.remirror/dom
- The dom framework implementation of via createDomEditor
.FAQs
One editing package to rule them all, one editing package to bind them.
The npm package remirror receives a total of 31,817 weekly downloads. As such, remirror popularity was classified as popular.
We found that remirror demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.