Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 639 Bytes

File metadata and controls

29 lines (23 loc) · 639 Bytes

Code Splitting

WARNING: Unstable feature. May be removed in later version

ReferenceJS exposes the Plain object API by default:

// Plain
import { createReference } from 'referencejs';

You can import the immutable API instead:

// Immutable
import { createReference } from 'referencejs/immutable';

Code splitting

You can also import only the functions you need.

// Plain
import createReference from 'referencejs/plain/createReference';

NOTE: the individual plain functions are under referencejs/plain/

// Immutable
import createReference from 'referencejs/immutable/createReference';