Skip to content

Commit

Permalink
Revert "Revert "chore(build): use swc instead of babel during build""
Browse files Browse the repository at this point in the history
This reverts commit b8a5ac3.
  • Loading branch information
ribeirojose committed Feb 6, 2024
1 parent a21615d commit ff4c515
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 443 deletions.
16 changes: 0 additions & 16 deletions .babelrc.json

This file was deleted.

8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,11 @@
"node": ">=18.0.0"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@babel/preset-env": "7.23.9",
"@babel/preset-react": "7.23.3",
"@babel/preset-typescript": "7.23.3",
"@commitlint/cli": "18.5.0",
"@commitlint/config-conventional": "18.5.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-swc": "^0.3.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-url": "^8.0.2",
"@ryansonshine/commitizen": "4.2.8",
Expand Down Expand Up @@ -112,7 +108,6 @@
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.2.2",
"autoprefixer": "^10.4.17",
"babel-loader": "9.1.3",
"concurrently": "8.2.2",
"css-loader": "^6.10.0",
"eslint": "8.56.0",
Expand Down Expand Up @@ -142,6 +137,7 @@
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-swc3": "^0.11.0",
"rollup-plugin-typescript2": "^0.36.0",
"storybook": "7.6.12",
"style-loader": "^3.3.4",
Expand Down
11 changes: 2 additions & 9 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { DEFAULT_EXTENSIONS } from "@babel/core";
import { babel } from "@rollup/plugin-babel";
import { defineRollupSwcOption, swc } from "rollup-plugin-swc3";
import commonjs from "@rollup/plugin-commonjs";
import resolve from "@rollup/plugin-node-resolve";
import terser from "@rollup/plugin-terser";
import svgr from "@svgr/rollup";
import autoprefixer from "autoprefixer";
import peerDepsExternal from "rollup-plugin-peer-deps-external";
import postcss from "rollup-plugin-postcss";
import typescript from "rollup-plugin-typescript2";
import tailwind from "tailwindcss";

const packageJson = require("./package.json");
Expand All @@ -32,12 +30,7 @@ export default [
resolve(),
commonjs(),
svgr(),
typescript({ tsconfig: "./tsconfig.json" }),
babel({
babelHelpers: "bundled",
exclude: "node_modules/**",
extensions: [...DEFAULT_EXTENSIONS, ".ts", "tsx"],
}),
swc(defineRollupSwcOption({})),
postcss({
extract: true,
config: {
Expand Down
Loading

0 comments on commit ff4c515

Please sign in to comment.