python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to perform tree shaking for lodash in a create-react-app project?
I need to perform tree-shaking to reduce bundle sizes where lodash and some other libraries are being used.
I've converted all lodash imports like this:
import {isEmpty} from "lodash";
But s...
Shivaansh Agarwal
Votes: 0
Answers: 1
Best practice to publish src folder that contains esm modules
Consider this package.json:
{
"main": "./index.js",
"name": "@myorg/foo",
"scripts": {
"build": "babel src -d dist --delete-d...
BPL
Votes: 0
Answers: 1
Webpack5 does not seem to tree-shake unused exports
I set up a small project with the following files
- src/
- lib/
- lib1.ts
- export : func_lib1_1, func_lib1_2
- lib2.ts
- export : func_lib2_1, func_lib2_2
- pkg1/
- pkg1.t...
Colisan
Votes: 0
Answers: 1
bootstrap-vue vuejs dynamic async component import
I would like to import a single bootstrap component dynamically only when I need it.
Bellow syntax actually can do it but it does import all components.
So final module bundle after tree-shaking is 1....
Stan Sokolov
Votes: 0
Answers: 1