Switch to swc from babel (#5593)
* refactor: switch to swc from babel * bump to latest versions of swc Co-authored-by: Sachin Raja <sachinraja2349@gmail.com>
This commit is contained in:
parent
c1a156639e
commit
164c3d6b50
3 changed files with 2016 additions and 7455 deletions
10
.swcrc
Normal file
10
.swcrc
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"module": {
|
||||
"type": "commonjs"
|
||||
},
|
||||
"env": {
|
||||
"targets": {
|
||||
"node": "12.13.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
9423
package-lock.json
generated
9423
package-lock.json
generated
File diff suppressed because it is too large
Load diff
38
package.json
38
package.json
|
|
@ -18,17 +18,17 @@
|
|||
"David Hemphill <davidlee.hemphill@gmail.com>"
|
||||
],
|
||||
"scripts": {
|
||||
"prebabelify": "npm run generate:plugin-list && rimraf lib",
|
||||
"babelify": "babel src --out-dir lib --copy-files",
|
||||
"postbabelify": "ncc build lib/cli-peer-dependencies.js -o peers",
|
||||
"rebuild-fixtures": "npm run babelify && babel-node scripts/rebuildFixtures.js",
|
||||
"prepublishOnly": "npm install --force && npm run babelify",
|
||||
"preswcify": "npm run generate:plugin-list && rimraf lib",
|
||||
"swcify": "swc src --out-dir lib --copy-files",
|
||||
"postswcify": "ncc build lib/cli-peer-dependencies.js -o peers",
|
||||
"rebuild-fixtures": "npm run swcify && node -r @swc/register scripts/rebuildFixtures.js",
|
||||
"prepublishOnly": "npm install --force && npm run swcify",
|
||||
"style": "eslint .",
|
||||
"test": "cross-env TAILWIND_MODE=build jest",
|
||||
"test:integrations": "npm run test --prefix ./integrations",
|
||||
"install:integrations": "node scripts/install-integrations.js",
|
||||
"posttest": "npm run style",
|
||||
"generate:plugin-list": "babel-node scripts/create-plugin-list.js"
|
||||
"generate:plugin-list": "node -r @swc/register scripts/create-plugin-list.js"
|
||||
},
|
||||
"files": [
|
||||
"src/*",
|
||||
|
|
@ -42,14 +42,13 @@
|
|||
"*.js"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.14.8",
|
||||
"@babel/core": "^7.15.5",
|
||||
"@babel/node": "^7.12.13",
|
||||
"@babel/preset-env": "^7.15.0",
|
||||
"@swc/cli": "^0.1.50",
|
||||
"@swc/core": "^1.2.90",
|
||||
"@swc/jest": "^0.1.5",
|
||||
"@swc/register": "^0.1.7",
|
||||
"@tailwindcss/aspect-ratio": "^0.2.1",
|
||||
"@vercel/ncc": "^0.31.1",
|
||||
"autoprefixer": "^10.3.3",
|
||||
"babel-jest": "^27.1.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"cssnano": "^5.0.8",
|
||||
"eslint": "^7.32.0",
|
||||
|
|
@ -95,18 +94,6 @@
|
|||
"not ie 11",
|
||||
"not op_mini all"
|
||||
],
|
||||
"babel": {
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"targets": {
|
||||
"node": "12.13.0"
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"jest": {
|
||||
"testTimeout": 30000,
|
||||
"setupFilesAfterEnv": [
|
||||
|
|
@ -115,7 +102,10 @@
|
|||
"testPathIgnorePatterns": [
|
||||
"/node_modules/",
|
||||
"/integrations/"
|
||||
]
|
||||
],
|
||||
"transform": {
|
||||
"\\.js$": "@swc/jest"
|
||||
}
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.13.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue