L
L
lena_shevtsova2021-04-25 20:55:15
JavaScript
lena_shevtsova, 2021-04-25 20:55:15

How to connect not the entire luxon library, but only dateTime?

To optimize the assembly, you must not include unused code. for example, for lodash you can do it like this: lodash/chunk. For luxon, this does not work. What can be replaced?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-04-25
@vabka

1. You can not use luxon.
2. If you use bundlers like webpack - you can enable tree shacking there , this should throw out all the code that is not used from the result

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question