Skip to content

build: Use swc for building #706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
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: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"npm-run-all": "^4.1.5"
},
"volta": {
"node": "14.21.2",
"node": "20.18.2",
"yarn": "1.22.19"
}
}
3 changes: 0 additions & 3 deletions packages/babel-plugin-component-annotate/.babelrc.json

This file was deleted.

6 changes: 2 additions & 4 deletions packages/babel-plugin-component-annotate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@
},
"devDependencies": {
"@babel/core": "7.18.5",
"@babel/preset-env": "7.18.2",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "7.17.12",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-swc": "^0.4.0",
"@sentry-internal/eslint-config": "3.2.2",
"@sentry-internal/sentry-bundler-plugin-tsconfig": "3.2.2",
"@swc/core": "^1.2.205",
"@swc/core": "^1.11.13",
"@swc/jest": "^0.2.21",
"@types/jest": "^28.1.3",
"@types/node": "^18.6.3",
Expand Down
8 changes: 2 additions & 6 deletions packages/babel-plugin-component-annotate/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import resolve from "@rollup/plugin-node-resolve";
import babel from "@rollup/plugin-babel";
import packageJson from "./package.json";
import modulePackage from "module";
import swc from "@rollup/plugin-swc";

const input = ["src/index.ts"];

Expand All @@ -25,11 +25,7 @@ export default {
rootDir: "./src",
preferBuiltins: true,
}),
babel({
extensions,
babelHelpers: "bundled",
include: ["src/**/*"],
}),
swc(),
],
output: [
{
Expand Down
3 changes: 0 additions & 3 deletions packages/bundler-plugin-core/.babelrc.json

This file was deleted.

6 changes: 2 additions & 4 deletions packages/bundler-plugin-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,16 @@
"unplugin": "1.0.1"
},
"devDependencies": {
"@babel/preset-env": "7.18.2",
"@babel/preset-typescript": "7.17.12",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-swc": "^0.4.0",
"@sentry-internal/eslint-config": "3.2.2",
"@sentry-internal/sentry-bundler-plugin-tsconfig": "3.2.2",
"@sentry/core": "8.30.0",
"@sentry/types": "8.30.0",
"@sentry/utils": "8.30.0",
"@swc/core": "^1.2.205",
"@swc/core": "^1.11.13",
"@swc/jest": "^0.2.21",
"@types/jest": "^28.1.3",
"@types/node": "^18.6.3",
Expand Down
8 changes: 2 additions & 6 deletions packages/bundler-plugin-core/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import babel from "@rollup/plugin-babel";
import json from "@rollup/plugin-json";
import resolve from "@rollup/plugin-node-resolve";
import replace from "@rollup/plugin-replace";
import modulePackage from "module";
import packageJson from "./package.json";
import swc from "@rollup/plugin-swc";

const input = ["src/index.ts"];
const extensions = [".ts"];
Expand Down Expand Up @@ -33,11 +33,7 @@ export default {
__PACKAGE_VERSION__: JSON.stringify(packageJson.version),
},
}),
babel({
extensions,
babelHelpers: "bundled",
include: ["src/**/*"],
}),
swc(),
],
output: [
{
Expand Down
3 changes: 0 additions & 3 deletions packages/esbuild-plugin/.babelrc.json

This file was deleted.

7 changes: 2 additions & 5 deletions packages/esbuild-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,11 @@
"uuid": "^9.0.0"
},
"devDependencies": {
"@babel/core": "7.18.5",
"@babel/preset-env": "7.18.2",
"@babel/preset-typescript": "7.17.12",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-swc": "^0.4.0",
"@sentry-internal/eslint-config": "3.2.2",
"@sentry-internal/sentry-bundler-plugin-tsconfig": "3.2.2",
"@swc/core": "^1.2.205",
"@swc/core": "^1.11.13",
"@swc/jest": "^0.2.21",
"@types/jest": "^28.1.3",
"@types/node": "^18.6.3",
Expand Down
8 changes: 2 additions & 6 deletions packages/esbuild-plugin/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import resolve from "@rollup/plugin-node-resolve";
import babel from "@rollup/plugin-babel";
import packageJson from "./package.json";
import modulePackage from "module";
import swc from "@rollup/plugin-swc";

const input = ["src/index.ts"];

Expand All @@ -25,11 +25,7 @@ export default {
rootDir: "./src",
preferBuiltins: true,
}),
babel({
extensions,
babelHelpers: "bundled",
include: ["src/**/*"],
}),
swc(),
],
output: [
{
Expand Down
3 changes: 0 additions & 3 deletions packages/rollup-plugin/.babelrc.json

This file was deleted.

6 changes: 2 additions & 4 deletions packages/rollup-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,12 @@
"rollup": ">=3.2.0"
},
"devDependencies": {
"@babel/core": "7.18.5",
"@babel/preset-env": "7.18.2",
"@babel/preset-typescript": "7.17.12",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-swc": "^0.4.0",
"@sentry-internal/eslint-config": "3.2.2",
"@sentry-internal/sentry-bundler-plugin-tsconfig": "3.2.2",
"@swc/core": "^1.2.205",
"@swc/core": "^1.11.13",
"@swc/jest": "^0.2.21",
"@types/jest": "^28.1.3",
"@types/node": "^18.6.3",
Expand Down
8 changes: 2 additions & 6 deletions packages/rollup-plugin/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import resolve from "@rollup/plugin-node-resolve";
import babel from "@rollup/plugin-babel";
import packageJson from "./package.json";
import modulePackage from "module";
import swc from "@rollup/plugin-swc";

const input = ["src/index.ts"];

Expand All @@ -25,11 +25,7 @@ export default {
rootDir: "./src",
preferBuiltins: true,
}),
babel({
extensions,
babelHelpers: "bundled",
include: ["src/**/*"],
}),
swc(),
],
output: [
{
Expand Down
3 changes: 0 additions & 3 deletions packages/vite-plugin/.babelrc.json

This file was deleted.

6 changes: 2 additions & 4 deletions packages/vite-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,12 @@
"unplugin": "1.0.1"
},
"devDependencies": {
"@babel/core": "7.18.5",
"@babel/preset-env": "7.18.2",
"@babel/preset-typescript": "7.17.12",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-swc": "^0.4.0",
"@sentry-internal/eslint-config": "3.2.2",
"@sentry-internal/sentry-bundler-plugin-tsconfig": "3.2.2",
"@swc/core": "^1.2.205",
"@swc/core": "^1.11.13",
"@swc/jest": "^0.2.21",
"@types/jest": "^28.1.3",
"@types/node": "^18.6.3",
Expand Down
8 changes: 2 additions & 6 deletions packages/vite-plugin/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import resolve from "@rollup/plugin-node-resolve";
import babel from "@rollup/plugin-babel";
import packageJson from "./package.json";
import modulePackage from "module";
import swc from "@rollup/plugin-swc";

const input = ["src/index.ts"];

Expand All @@ -25,11 +25,7 @@ export default {
rootDir: "./src",
preferBuiltins: true,
}),
babel({
extensions,
babelHelpers: "bundled",
include: ["src/**/*"],
}),
swc(),
],
output: [
{
Expand Down
3 changes: 0 additions & 3 deletions packages/webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@
"uuid": "^9.0.0"
},
"devDependencies": {
"@babel/core": "7.18.5",
"@babel/preset-env": "7.18.2",
"@babel/preset-typescript": "7.17.12",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-commonjs": "22.0.1",
"@sentry-internal/eslint-config": "3.2.2",
Expand Down
8 changes: 2 additions & 6 deletions packages/webpack-plugin/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import resolve from "@rollup/plugin-node-resolve";
import babel from "@rollup/plugin-babel";
import packageJson from "./package.json";
import modulePackage from "module";
import swc from "@rollup/plugin-swc";

const input = ["src/index.ts"];

Expand All @@ -25,11 +25,7 @@ export default {
rootDir: "./src",
preferBuiltins: true,
}),
babel({
extensions,
babelHelpers: "bundled",
include: ["src/**/*"],
}),
swc(),
],
output: [
{
Expand Down
Loading
Loading