frontarm / navi

🧭 Declarative, asynchronous routing for React.
https://frontarm.com/navi/
MIT License
2.07k stars 71 forks source link

Huge import size. #151

Closed asimashfaq closed 4 years ago

asimashfaq commented 4 years ago

Webpack adding huge size to the production bundle. https://prnt.sc/pwcf5i

Any suggestions to reduce this.

my tsconfig.json

{ "compilerOptions": { "outDir": "./dist/", "sourceMap": true, "noImplicitAny": false, "jsx": "react", "module": "esnext", "esModuleInterop":true, "isolatedModules": true, "moduleResolution": "node", "target": "es5", "lib": [ "es5", "es6", "dom", "dom.iterable", "es2015.collection", "es2017"] }, "include": [ "./src/**/*", "tests/venue/reducer.test.ts", "tests/venue/action.test.ts", "tests/venue/epic.test.ts", "tests/services/api.test.ts" ], "awesomeTypescriptLoaderOptions": { "reportFiles": [ "./src/**/*" ] } }

jamesknelson commented 4 years ago

Closing this as I'm not sure a gzipped size of 11kb is really "huge".