Skip to content

@a2ui/web_core@0.9.2 npm package includes broken sourcemaps referencing missing source files #1309

@46ki75

Description

@46ki75

The published npm package @a2ui/web_core@0.9.2 contains .js files with sourcemaps (.js.map) that reference original TypeScript source files, but those .ts source files are not present in the published package. This causes bundlers/build tools (like Vite or webpack) to emit warnings such as:

Sourcemap for Sourcemap for "/home/ikuma/org/46ki75/internal/node_modules/.pnpm/@a2ui+web_core@0.9.2/node_modules/@a2ui/web_core/src/v0_9/basic_catalog/index.js" points to missing source files
Sourcemap for "/home/ikuma/org/46ki75/internal/node_modules/.pnpm/@a2ui+web_core@0.9.2/node_modules/@a2ui/web_core/src/v0_9/index.js" points to missing source files
... (and so on)

Steps to reproduce

  1. Install @a2ui/web_core@0.9.2 using npm.
  2. Build or run your project using a tool that processes sourcemaps.
  3. Observe warnings about missing source files referenced in sourcemaps.

Expected behavior

Either:

  • All referenced source files should be included in the published package;
  • OR, sourcemap generation should be omitted for files whose sources won't be distributed.

Environment

  • @a2ui/web_core@0.9.2
  • Node.js v24.15.0
  • Vite v7.3.1 

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions