@remirror/pm
v3.0.0
Published
A bundled library containing all the core prosemirror libraries required for using remirror
Downloads
169,205
Readme
@remirror/pm
All the bundled prosemirror dependencies which are required for the remirror core libraries.
Installation
yarn add @remirror/pm # yarn
pnpm add @remirror/pm # pnpm
npm install @remirror/pm # npm
Usage
This bundles up the prosemirror libraries into one package to make development and consumption of the remirror codebase simpler. All prosemirror libraries are available as es-modules which makes tree shaking with rollup, webpack and other build tools possible.
This library is a required peer dependency when using remirror in your codebase. You might never need to use it directly, but in case you do, here's a snippet of how to do so.
// Top level provides types and utilities for converting commands.
import type { EditorSchema } from '@remirror/pm';
import { chainableEditorState } from '@remirror/pm';
// Nested imports provides access to the individual prosemirror library exports.
import { EditorState } from '@remirror/pm/state';
import { Suggest } from '@remirror/pm/suggest';
import { View } from '@remirror/pm/view';