diff --git a/test/unit/behaviour.spec.ts b/test/unit/behaviour.spec.ts index d2a3c866..ebfa52f0 100644 --- a/test/unit/behaviour.spec.ts +++ b/test/unit/behaviour.spec.ts @@ -7,6 +7,7 @@ import { createPage, setup, url } from '@nuxt/test-utils/e2e' await setup({ rootDir: fileURLToPath(new URL('../..', import.meta.url)), nuxtConfig: { + sourcemap: false, nitro: { prerender: { crawlLinks: false, diff --git a/test/unit/bundle.spec.ts b/test/unit/bundle.spec.ts index 2adbd8bd..596dae8b 100644 --- a/test/unit/bundle.spec.ts +++ b/test/unit/bundle.spec.ts @@ -36,7 +36,7 @@ describe('project sizes', () => { stats.client = await analyzeSizes('**/*.js', publicDir) expect .soft(roundToKilobytes(stats.client.totalBytes)) - .toMatchInlineSnapshot(`"397k"`) + .toMatchInlineSnapshot(`"270k"`) expect.soft(stats.client.files.map(f => f.replace(/\..*\.js/, '.js').replace(/_scripts\/.*\.js/, '_scripts/script.js')).sort()) .toMatchInlineSnapshot(` [ @@ -81,12 +81,12 @@ describe('project sizes', () => { stats.server = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir) expect .soft(roundToKilobytes(stats.server.totalBytes)) - .toMatchInlineSnapshot(`"456k"`) + .toMatchInlineSnapshot(`"441k"`) const modules = await analyzeSizes('node_modules/**/*', serverDir) expect .soft(roundToKilobytes(modules.totalBytes)) - .toMatchInlineSnapshot(`"23172k"`) + .toMatchInlineSnapshot(`"8137k"`) const packages = modules.files .filter(m => m.endsWith('package.json')) @@ -100,159 +100,8 @@ describe('project sizes', () => { "@atproto/syntax", "@atproto/xrpc", "@babel/parser", - "@opentelemetry/api", - "@opentelemetry/api-logs", - "@opentelemetry/context-async-hooks", - "@opentelemetry/core", - "@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-amqplib", - "@opentelemetry/instrumentation-amqplib/node_modules/@opentelemetry/core", - "@opentelemetry/instrumentation-amqplib/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-amqplib/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-amqplib/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-amqplib/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-connect", - "@opentelemetry/instrumentation-connect/node_modules/@opentelemetry/core", - "@opentelemetry/instrumentation-connect/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-connect/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-connect/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-connect/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-dataloader", - "@opentelemetry/instrumentation-dataloader/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-dataloader/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-express", - "@opentelemetry/instrumentation-express/node_modules/@opentelemetry/core", - "@opentelemetry/instrumentation-express/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-express/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-express/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-express/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-fastify", - "@opentelemetry/instrumentation-fastify/node_modules/@opentelemetry/core", - "@opentelemetry/instrumentation-fastify/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-fastify/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-fastify/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-fastify/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-fs", - "@opentelemetry/instrumentation-fs/node_modules/@opentelemetry/core", - "@opentelemetry/instrumentation-fs/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-fs/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-fs/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-generic-pool", - "@opentelemetry/instrumentation-generic-pool/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-generic-pool/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-graphql", - "@opentelemetry/instrumentation-graphql/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-graphql/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-hapi", - "@opentelemetry/instrumentation-hapi/node_modules/@opentelemetry/core", - "@opentelemetry/instrumentation-hapi/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-hapi/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-hapi/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-hapi/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-http", - "@opentelemetry/instrumentation-http/node_modules/@opentelemetry/core", - "@opentelemetry/instrumentation-http/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-http/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-http/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-http/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-ioredis", - "@opentelemetry/instrumentation-ioredis/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-ioredis/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-ioredis/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-kafkajs", - "@opentelemetry/instrumentation-kafkajs/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-kafkajs/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-kafkajs/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-knex", - "@opentelemetry/instrumentation-knex/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-knex/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-knex/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-koa", - "@opentelemetry/instrumentation-koa/node_modules/@opentelemetry/core", - "@opentelemetry/instrumentation-koa/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-koa/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-koa/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-koa/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-lru-memoizer", - "@opentelemetry/instrumentation-lru-memoizer/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-lru-memoizer/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-mongodb", - "@opentelemetry/instrumentation-mongodb/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-mongodb/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-mongodb/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-mongoose", - "@opentelemetry/instrumentation-mongoose/node_modules/@opentelemetry/core", - "@opentelemetry/instrumentation-mongoose/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-mongoose/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-mongoose/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-mongoose/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-mysql", - "@opentelemetry/instrumentation-mysql/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-mysql/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-mysql/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-mysql2", - "@opentelemetry/instrumentation-mysql2/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-mysql2/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-mysql2/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-nestjs-core", - "@opentelemetry/instrumentation-nestjs-core/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-nestjs-core/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-nestjs-core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-pg", - "@opentelemetry/instrumentation-pg/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-pg/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-pg/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-redis-4", - "@opentelemetry/instrumentation-redis-4/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-redis-4/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-redis-4/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-tedious", - "@opentelemetry/instrumentation-tedious/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-tedious/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation-tedious/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-undici", - "@opentelemetry/instrumentation-undici/node_modules/@opentelemetry/core", - "@opentelemetry/instrumentation-undici/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/instrumentation-undici/node_modules/@opentelemetry/instrumentation", - "@opentelemetry/instrumentation-undici/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@opentelemetry/redis-common", - "@opentelemetry/resources", - "@opentelemetry/resources/node_modules/@opentelemetry/core", - "@opentelemetry/resources/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/resources/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/sdk-trace-base", - "@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core", - "@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/semantic-conventions", - "@opentelemetry/semantic-conventions", - "@opentelemetry/sql-common", - "@opentelemetry/sql-common/node_modules/@opentelemetry/core", - "@opentelemetry/sql-common/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@prisma/instrumentation", - "@prisma/instrumentation/node_modules/@opentelemetry/instrumentation", - "@prisma/instrumentation/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", "@sanity/client", "@sanity/eventsource", - "@sentry/core", - "@sentry/core/build/esm", - "@sentry/node", - "@sentry/node/build/esm", - "@sentry/node/node_modules/@opentelemetry/core", - "@sentry/node/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@sentry/node/node_modules/@opentelemetry/instrumentation", - "@sentry/node/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@sentry/node/node_modules/@opentelemetry/semantic-conventions", - "@sentry/nuxt", - "@sentry/nuxt/build/esm", - "@sentry/opentelemetry", - "@sentry/opentelemetry/build/esm", - "@sentry/opentelemetry/node_modules/@opentelemetry/core", - "@sentry/opentelemetry/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions", - "@sentry/opentelemetry/node_modules/@opentelemetry/instrumentation", - "@sentry/opentelemetry/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs", - "@sentry/opentelemetry/node_modules/@opentelemetry/semantic-conventions", "@shikijs/core", "@shikijs/engine-javascript", "@shikijs/engine-oniguruma", @@ -303,7 +152,6 @@ describe('project sizes', () => { "feed", "flat", "follow-redirects", - "function-bind", "get-it", "github-slugger", "graphemer", @@ -320,7 +168,6 @@ describe('project sizes', () => { "hookable", "html-void-elements", "image-meta", - "import-in-the-middle", "inherits", "is-absolute-url", "is-alphabetical", @@ -376,14 +223,12 @@ describe('project sizes', () => { "micromark-util-sanitize-uri", "micromark-util-subtokenize", "mimic-response", - "module-details-from-path", "ms", "multiformats", "node-emoji", "oniguruma-to-es", "parse-entities", "parse5", - "path-parse", "process-nextick-args", "progress-stream", "property-information", @@ -398,8 +243,6 @@ describe('project sizes', () => { "remark-mdc", "remark-parse", "remark-rehype", - "require-in-the-middle", - "resolve", "rxjs", "safe-buffer", "sax",