Skip to content

Commit 8d95690

Browse files
committed
fix path alias is unresolved
1 parent dc7c48f commit 8d95690

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vite-plugin-solid-undestructure",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Automatically transforms props destructuring in SolidJS components",
55
"type": "module",
66
"main": "./dist/index.js",

src/eslint/modules/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { checkIfComponent } from '@/modules/component-detector'
21
import generateImport from '@babel/generator'
32
import { parse } from '@babel/parser'
43
import traverseImport, { NodePath, Visitor } from '@babel/traverse'
54
import * as t from '@babel/types'
5+
import { checkIfComponent } from '../../modules/component-detector'
66

77
// Handle ESM/CJS interop
88
const traverse =

tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"extends": "config/tsconfig",
33
"compilerOptions": {
4-
"noEmit": false,
5-
"paths": {
6-
"@/*": ["./src/*"]
7-
}
4+
"noEmit": false
85
},
96
"include": ["src"]
107
}

0 commit comments

Comments
 (0)