Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
node_modules
yarn-error.log

.vscode/settings.json

*.tgz
3 changes: 3 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
},
"check:types": {
"dependsOn": ["^build"]
},
"build:npm": {
"dependsOn": ["build", "^build"]
}
}
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@sentry/sentry-unplugin-root",
"name": "@sentry/bundler-plugins",
"version": "0.0.0",
"description": "Root of the sentry unplugin monorepo.",
"repository": "[email protected]:lforst/sentry-unplugin.git",
"description": "Sentry Bundler Plugins Monorepo.",
"repository": "[email protected]:getsentry/sentry-unplugin.git",
"private": true,
"workspaces": [
"packages/*"
Expand All @@ -11,6 +11,7 @@
"build": "nx run-many --target=build --all",
"build:watch": "nx run-many --target=build:watch --all",
"build:graph": "nx graph",
"build:npm": "nx run-many --target=build:npm --all",
"check:types": "nx run-many --target=check:types --all",
"test": "nx run-many --target=test --all",
"lint": "nx run-many --target=lint --all",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</a>
</p>

# Sentry Unplugin (WIP)
# Sentry Bundler Plugin Core

**WARNING: This package is work in progress! Do not yet use it in production. We're happy to receive your feedback!**

Expand All @@ -19,15 +19,13 @@ Check out the individual packages for more information and examples:

### Features

The Sentry Unplugin take care of Sentry-related tasks at build time of your JavaScript projects. It supports the following features:
The Sentry bundler plugin core package contains the following functionality:

- Sourcemap upload
- Release creation in Sentry
- Automatic release name discovery (based on CI environment - Vercel, AWS, Heroku, CircleCI, or current Git SHA)
- Automatically associate errors with releases (Release injection)

The Sentry Unplugin can be used as a replacement of [Sentry CLI](https://docs.sentry.io/learn/cli/) for these tasks.

### More information

- [Sentry Documentation](https://docs.sentry.io/quickstart/)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@sentry/sentry-unplugin",
"name": "@sentry/bundler-plugin-core",
"version": "0.0.0-alpha.0",
"description": "Official Sentry unplugin",
"repository": "git://github.com/getsentry/sentry-unplugin.git",
Expand All @@ -22,6 +22,7 @@
"build:rollup:watch": "rollup --config rollup.config.js --watch --no-watch.clearScreen",
"build:types": "tsc --project types.tsconfig.json",
"build:types:watch": "tsc --project types.tsconfig.json --watch --preserveWatchOutput",
"build:npm": "npm pack",
"check:types": "run-p check:types:src check:types:test",
"check:types:src": "tsc --project ./src/tsconfig.json --noEmit",
"check:types:test": "tsc --project ./test/tsconfig.json --noEmit",
Expand Down
3 changes: 2 additions & 1 deletion packages/esbuild-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@
"build:rollup:watch": "rollup --config rollup.config.js --watch --no-watch.clearScreen",
"build:types": "tsc --project types.tsconfig.json",
"build:types:watch": "tsc --project types.tsconfig.json --watch --preserveWatchOutput",
"build:npm": "npm pack",
"check:types": "run-p check:types:src check:types:test",
"check:types:src": "tsc --project ./src/tsconfig.json --noEmit",
"check:types:test": "tsc --project ./test/tsconfig.json --noEmit",
"test": "jest",
"lint": "eslint ./src ./test"
},
"dependencies": {
"@sentry/sentry-unplugin": "0.0.0-alpha.0"
"@sentry/bundler-plugin-core": "0.0.0-alpha.0"
},
"devDependencies": {
"@babel/core": "7.18.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/esbuild-plugin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { sentryEsbuildPlugin as default } from "@sentry/sentry-unplugin";
export type { Options } from "@sentry/sentry-unplugin";
export { sentryEsbuildPlugin as default } from "@sentry/bundler-plugin-core";
export type { Options } from "@sentry/bundler-plugin-core";
2 changes: 1 addition & 1 deletion packages/integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@sentry-internal/eslint-config": "0.0.0-alpha.0",
"@sentry-internal/sentry-unplugin-tsconfig": "0.0.0-alpha.0",
"@sentry/sentry-unplugin": "0.0.0-alpha.0",
"@sentry/bundler-plugin-core": "0.0.0-alpha.0",
"@swc/jest": "^0.2.21",
"@types/jest": "^28.1.3",
"@types/webpack4": "npm:@types/[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion packages/integration-tests/utils/create-cjs-bundles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
sentryVitePlugin,
sentryWebpackPlugin,
Options,
} from "@sentry/sentry-unplugin";
} from "@sentry/bundler-plugin-core";

export function createCjsBundles(
entrypoints: { [name: string]: string },
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/build-esbuild.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { sentryEsbuildPlugin } = require("@sentry/sentry-unplugin");
const { sentryEsbuildPlugin } = require("@sentry/bundler-plugin-core");
const { build } = require("esbuild");
const placeHolderOptions = require("./config.json");

Expand Down
2 changes: 1 addition & 1 deletion packages/playground/build-webpack4.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
const path = require("path");
const webpack4 = require("webpack4");
const { sentryWebpackPlugin } = require("@sentry/sentry-unplugin");
const { sentryWebpackPlugin } = require("@sentry/bundler-plugin-core");

const placeHolderOptions = require("./config.json");

Expand Down
2 changes: 1 addition & 1 deletion packages/playground/build-webpack5.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
const path = require("path");
const webpack5 = require("webpack");
const { sentryWebpackPlugin } = require("@sentry/sentry-unplugin");
const { sentryWebpackPlugin } = require("@sentry/bundler-plugin-core");

const placeHolderOptions = require("./config.json");

Expand Down
2 changes: 1 addition & 1 deletion packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@sentry/integrations": "^7.11.1",
"@sentry/node": "^7.11.1",
"@sentry/sentry-unplugin": "0.0.0-alpha.0",
"@sentry/bundler-plugin-core": "0.0.0-alpha.0",
"@types/express": "^4.17.13",
"@types/http-proxy": "^1.17.9",
"esbuild": "0.14.49",
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
import commonjs from "@rollup/plugin-commonjs";
import resolve from "@rollup/plugin-node-resolve";
import { sentryRollupPlugin } from "@sentry/sentry-unplugin";
import { sentryRollupPlugin } from "@sentry/bundler-plugin-core";
import placeHolderOptions from "./config.json";

const input = ["src/entrypoint1.js"];
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import { sentryVitePlugin } from "@sentry/sentry-unplugin";
import { sentryVitePlugin } from "@sentry/bundler-plugin-core";
import { defineConfig } from "vite";
import * as path from "path";
import placeHolderOptions from "./config.json";
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/vite.config.smallNodeApp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import { sentryVitePlugin } from "@sentry/sentry-unplugin";
import { sentryVitePlugin } from "@sentry/bundler-plugin-core";
import { defineConfig } from "vite";
import * as path from "path";

Expand Down
3 changes: 2 additions & 1 deletion packages/rollup-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@
"build:rollup:watch": "rollup --config rollup.config.js --watch --no-watch.clearScreen",
"build:types": "tsc --project types.tsconfig.json",
"build:types:watch": "tsc --project types.tsconfig.json --watch --preserveWatchOutput",
"build:npm": "npm pack",
"check:types": "run-p check:types:src check:types:test",
"check:types:src": "tsc --project ./src/tsconfig.json --noEmit",
"check:types:test": "tsc --project ./test/tsconfig.json --noEmit",
"test": "jest",
"lint": "eslint ./src ./test"
},
"dependencies": {
"@sentry/sentry-unplugin": "0.0.0-alpha.0"
"@sentry/bundler-plugin-core": "0.0.0-alpha.0"
},
"devDependencies": {
"@babel/core": "7.18.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/rollup-plugin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { sentryRollupPlugin as default } from "@sentry/sentry-unplugin";
export type { Options } from "@sentry/sentry-unplugin";
export { sentryRollupPlugin as default } from "@sentry/bundler-plugin-core";
export type { Options } from "@sentry/bundler-plugin-core";
3 changes: 2 additions & 1 deletion packages/vite-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@
"build:rollup:watch": "rollup --config rollup.config.js --watch --no-watch.clearScreen",
"build:types": "tsc --project types.tsconfig.json",
"build:types:watch": "tsc --project types.tsconfig.json --watch --preserveWatchOutput",
"build:npm": "npm pack",
"check:types": "run-p check:types:src check:types:test",
"check:types:src": "tsc --project ./src/tsconfig.json --noEmit",
"check:types:test": "tsc --project ./test/tsconfig.json --noEmit",
"test": "jest",
"lint": "eslint ./src ./test"
},
"dependencies": {
"@sentry/sentry-unplugin": "0.0.0-alpha.0"
"@sentry/bundler-plugin-core": "0.0.0-alpha.0"
},
"devDependencies": {
"@babel/core": "7.18.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/vite-plugin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { sentryVitePlugin as default } from "@sentry/sentry-unplugin";
export type { Options } from "@sentry/sentry-unplugin";
export { sentryVitePlugin as default } from "@sentry/bundler-plugin-core";
export type { Options } from "@sentry/bundler-plugin-core";
2 changes: 1 addition & 1 deletion packages/webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"lint": "eslint ./src ./test"
},
"dependencies": {
"@sentry/sentry-unplugin": "0.0.0-alpha.0"
"@sentry/bundler-plugin-core": "0.0.0-alpha.0"
},
"devDependencies": {
"@babel/core": "7.18.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack-plugin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { sentryWebpackPlugin as default } from "@sentry/sentry-unplugin";
export type { Options } from "@sentry/sentry-unplugin";
export { sentryWebpackPlugin as default } from "@sentry/bundler-plugin-core";
export type { Options } from "@sentry/bundler-plugin-core";