Import functions from files instead of the index to make the bundle smaller.
I've test it with rollup, the output is treeshakable. About 20 kb less.
Before
After
Remove ts-jest since it won't transform modules from node_modules even transfromIgnorePatterns is set. Current config is the official way from jest to support typescript.
This pull request introduces 1 alert when merging 4af64a77ebae4ca5bda3aff4f38ded394981851d into aec928befcfcbc63d87c79507f193d2aeed5ae11 - view on LGTM.com
Coverage decreased (-0.1%) to 99.145% when pulling 517c08501de41d69db50a2396b6e02186a2067ca on 07akioni:tc-treeshake into aec928befcfcbc63d87c79507f193d2aeed5ae11 on ant-design:master.
Import functions from files instead of the index to make the bundle smaller.
I've test it with rollup, the output is treeshakable. About 20 kb less.
Before
After
Remove
ts-jest
since it won't transform modules fromnode_modules
eventransfromIgnorePatterns
is set. Current config is the official way from jest to support typescript.https://jestjs.io/docs/en/getting-started#using-typescript