rsnext/packages
Jimmy Lai 552b9747ff
perf: fix tracing for routes (#56924)
follow up to #56898 where I noticed that we don't apply any filtering to the trace files for the user routes, resulting in files that would need to be filtered like `caniuse` not being filtered out correctly. This fixes that.

A lambda in my test project goes from `2.7MB` to `1.4MB`

followup: add some snapshot tests

before
```
Serverless function size info
Serverless Function's pages: _not-found.js, index.js
Large Dependencies                                                     Uncompressed size  Compressed size
node_modules/.pnpm/next@13.5.6-canary.1_react-dom@18.2.0_react@18.2.0            4.61 MB          1.35 MB
node_modules/.pnpm/caniuse-lite@1.0.30001517                                   909.73 KB        327.14 KB
node_modules/.pnpm/react-dom@18.2.0_react@18.2.0                               546.21 KB        138.87 KB

All dependencies                                                                 3.66 MB          2.01 MB
Serverless Function's page: favicon.ico.js
Large Dependencies                                                     Uncompressed size  Compressed size
node_modules/.pnpm/next@13.5.6-canary.1_react-dom@18.2.0_react@18.2.0            6.71 MB          2.05 MB
node_modules/.pnpm/caniuse-lite@1.0.30001517                                   909.73 KB        327.14 KB
node_modules/.pnpm/react-dom@18.2.0_react@18.2.0                               546.21 KB        138.87 KB

All dependencies                                                                 5.78 MB          2.71 MB
Serverless Function's page: api/hello-world.js
Large Dependencies                                                     Uncompressed size  Compressed size
node_modules/.pnpm/next@13.5.6-canary.1_react-dom@18.2.0_react@18.2.0            4.61 MB          1.35 MB
node_modules/.pnpm/caniuse-lite@1.0.30001517                                   909.73 KB        327.14 KB
node_modules/.pnpm/react-dom@18.2.0_react@18.2.0                               546.21 KB        138.87 KB

All dependencies                                                                 3.65 MB          2.01 MB
```

after

```
Large Dependencies                                                                          Uncompressed size  Compressed size
node_modules/.pnpm/file+next-canary+next-13.5.6-canary.1.tgz_react-dom@18.2.0_react@18.2.0            2.87 MB         844.1 KB

All dependencies                                                                                    341.31 KB        992.45 KB
Serverless Function's page: favicon.ico.js
Large Dependencies                                                                          Uncompressed size  Compressed size
node_modules/.pnpm/file+next-canary+next-13.5.6-canary.1.tgz_react-dom@18.2.0_react@18.2.0            4.97 MB          1.52 MB

All dependencies                                                                                      2.45 MB          1.67 MB
Serverless Function's page: api/hello-world.js
Large Dependencies                                                                          Uncompressed size  Compressed size
node_modules/.pnpm/file+next-canary+next-13.5.6-canary.1.tgz_react-dom@18.2.0_react@18.2.0            2.87 MB         844.1 KB

All dependencies                                                                                    328.64 KB        989.23 KB
````
2023-10-17 09:09:40 +00:00
..
create-next-app v13.5.6-canary.1 2023-10-16 23:24:30 +00:00
eslint-config-next v13.5.6-canary.1 2023-10-16 23:24:30 +00:00
eslint-plugin-next v13.5.6-canary.1 2023-10-16 23:24:30 +00:00
font v13.5.6-canary.1 2023-10-16 23:24:30 +00:00
next perf: fix tracing for routes (#56924) 2023-10-17 09:09:40 +00:00
next-bundle-analyzer v13.5.6-canary.1 2023-10-16 23:24:30 +00:00
next-codemod v13.5.6-canary.1 2023-10-16 23:24:30 +00:00
next-env feat(env): upgrade dotenv (#38481) 2023-10-17 00:57:51 +00:00
next-mdx v13.5.6-canary.1 2023-10-16 23:24:30 +00:00
next-plugin-storybook v13.5.6-canary.1 2023-10-16 23:24:30 +00:00
next-polyfill-module v13.5.6-canary.1 2023-10-16 23:24:30 +00:00
next-polyfill-nomodule v13.5.6-canary.1 2023-10-16 23:24:30 +00:00
next-swc v13.5.6-canary.1 2023-10-16 23:24:30 +00:00
react-dev-overlay Update Babel dependencies (#51962) 2023-10-17 02:25:57 +00:00
react-refresh-utils v13.5.6-canary.1 2023-10-16 23:24:30 +00:00
third-parties v13.5.6-canary.1 2023-10-16 23:24:30 +00:00