Skip to content

Commit

Permalink
Remove sucrase dependency and update fallback logging to use jiti
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Dec 20, 2024
1 parent 3b3d3f1 commit a383003
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 149 deletions.
3 changes: 1 addition & 2 deletions packages/cross-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
"dist"
],
"dependencies": {
"jiti": "^2.4.1",
"sucrase": "^3.35.0"
"jiti": "^2.4.1"
},
"devDependencies": {
"@master/css": "2.0.0-rc.24"
Expand Down
2 changes: 1 addition & 1 deletion packages/cross-import/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function crossImport(modulePath: string): any {
} catch (error) {
if (process.env.DEBUG) {
console.error(error)
console.log('[cross-import] fall back to sucrase runtime transform:', modulePath)
console.log('[cross-import] fall back to jiti runtime transform:', modulePath)
}
return createJiti(__dirname, {
cache: false,
Expand Down
Loading

0 comments on commit a383003

Please sign in to comment.