V
V
ValeraNakhuy2019-03-19 22:36:48
React
ValeraNakhuy, 2019-03-19 22:36:48

How to make it possible to import only one element from a react storybook and not pull the library every time?

What would be instead of this
import { Checkbox } from 'mystory' // 4.56 MB

import Checkbox from 'mystory/Checkbox'  // 27.56 kB

Where is it written about this in the documentation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2019-03-19
@hzzzzl

but from webpack, surely the js bundle comes out the same size?
that is, during assembly, it pulls only the necessary export from the library

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question