Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ A monorepo for sourcemap upload infrastructure.

## Structure

- **`packages/javascript-core`** — shared JS sourcemap upload core used by the bundler and Next.js adapters
- **`apps/backend`** — Rust (Axum) API server that ingests sourcemap uploads
- **`packages/bundler-plugin`** — Universal unplugin adapter set (Vite, Rolldown, Webpack and more) that uploads sourcemaps after builds
- **`packages/nextjs-config`** — Next.js config wrapper that composes the shared JS core with the bundler plugin where needed
- **`packages/proguard-plugin`** — a Gradle plugin for uploading ProGuard obfuscation mappings

## Development
Expand Down
125 changes: 122 additions & 3 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"build": "turbo run build",
"build:packages": "turbo run build --filter=@faststats/sourcemap-uploader-plugin && bun run build:proguard-plugin",
"build:packages": "turbo run build --filter=@faststats/sourcemap-uploader-core --filter=@faststats/sourcemap-uploader-plugin --filter=@faststats/sourcemap-uploader-nextjs && bun run build:proguard-plugin",
"build:proguard-plugin": "bun run --cwd packages/proguard-plugin build",
"sync-proguard-version": "bun scripts/sync-proguard-version.ts",
"dev": "turbo run dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Unplugin-based sourcemap uploader that works across all unplugin adapters:
## Usage

```ts
import sourcemapsPlugin from "@sourcemaps/bundler-plugin/vite";
import sourcemapsPlugin from "@faststats/sourcemap-uploader-plugin/vite";

export default {
plugins: [
Expand Down
57 changes: 36 additions & 21 deletions packages/bundler-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,57 +10,71 @@
"url": "https://github.com/faststats-dev/sourcemaps"
},
"type": "module",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"files": [
"dist",
"src",
"README.md"
],
"types": "./dist/index.d.mts",
"types": "./src/index.ts",
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs"
"types": "./src/index.ts",
"import": "./dist/index.mjs",
"default": "./dist/index.mjs"
},
"./vite": {
"types": "./dist/bundler/vite.d.mts",
"import": "./dist/bundler/vite.mjs"
"types": "./src/bundler/vite.ts",
"import": "./dist/bundler/vite.mjs",
"default": "./dist/bundler/vite.mjs"
},
"./rollup": {
"types": "./dist/bundler/rollup.d.mts",
"import": "./dist/bundler/rollup.mjs"
"types": "./src/bundler/rollup.ts",
"import": "./dist/bundler/rollup.mjs",
"default": "./dist/bundler/rollup.mjs"
},
"./rolldown": {
"types": "./dist/bundler/rolldown.d.mts",
"import": "./dist/bundler/rolldown.mjs"
"types": "./src/bundler/rolldown.ts",
"import": "./dist/bundler/rolldown.mjs",
"default": "./dist/bundler/rolldown.mjs"
},
"./webpack": {
"types": "./dist/bundler/webpack.d.mts",
"import": "./dist/bundler/webpack.mjs"
"types": "./src/bundler/webpack.ts",
"import": "./dist/bundler/webpack.mjs",
"default": "./dist/bundler/webpack.mjs"
},
"./rspack": {
"types": "./dist/bundler/rspack.d.mts",
"import": "./dist/bundler/rspack.mjs"
"types": "./src/bundler/rspack.ts",
"import": "./dist/bundler/rspack.mjs",
"default": "./dist/bundler/rspack.mjs"
},
"./esbuild": {
"types": "./dist/bundler/esbuild.d.mts",
"import": "./dist/bundler/esbuild.mjs"
"types": "./src/bundler/esbuild.ts",
"import": "./dist/bundler/esbuild.mjs",
"default": "./dist/bundler/esbuild.mjs"
},
"./unloader": {
"types": "./dist/bundler/unloader.d.mts",
"import": "./dist/bundler/unloader.mjs"
"types": "./src/bundler/unloader.ts",
"import": "./dist/bundler/unloader.mjs",
"default": "./dist/bundler/unloader.mjs"
},
"./farm": {
"types": "./dist/bundler/farm.d.mts",
"import": "./dist/bundler/farm.mjs"
"types": "./src/bundler/farm.ts",
"import": "./dist/bundler/farm.mjs",
"default": "./dist/bundler/farm.mjs"
},
"./bun": {
"types": "./dist/bundler/bun.d.mts",
"import": "./dist/bundler/bun.mjs"
"types": "./src/bundler/bun.ts",
"import": "./dist/bundler/bun.mjs",
"default": "./dist/bundler/bun.mjs"
}
},
"scripts": {
"build": "tsdown",
"lint": "biome check .",
"check-types": "tsc --noEmit",
"pretest": "bun run --cwd ../javascript-core build",
"test": "vitest run"
},
"devDependencies": {
Expand All @@ -78,6 +92,7 @@
"typescript": "^5.9.3 || ^6.0.0"
},
"dependencies": {
"@faststats/sourcemap-uploader-core": "workspace:*",
"unplugin": "^3.0.0"
}
}
Loading