File tree Expand file tree Collapse file tree 3 files changed +26
-22
lines changed Expand file tree Collapse file tree 3 files changed +26
-22
lines changed Original file line number Diff line number Diff line change 1
1
import 'tsx'
2
2
import { createRequire } from 'node:module'
3
3
4
- // eslint-disable-next-line antfu/no-import-dist
5
- import { defineConfig as defineConfig2 } from './dist/index.js'
6
-
7
4
const require = createRequire ( import . meta. url )
8
5
9
- const { defineConfig : defineConfig1 } = require ( './src/index.ts' )
10
-
11
- const useBuild = false
6
+ const { defineConfig } = require ( './src/index.ts' )
12
7
13
8
/** @type {import('./src/index.ts').defineConfig } */
14
- const defineConfig = useBuild ? defineConfig2 : defineConfig1
15
9
export default defineConfig (
16
10
{
17
11
vue : true ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- "target" : " es2020" ,
3
+ "target" : " ESNext" ,
4
+ "jsx" : " preserve" ,
5
+ "jsxImportSource" : " react" ,
6
+ "lib" : [" DOM" , " ESNext" ],
4
7
"baseUrl" : " ." ,
5
- "module" : " es2020 " ,
8
+ "module" : " ESNext " ,
6
9
"moduleResolution" : " Bundler" ,
10
+ "paths" : {
11
+ "@/*" : [" ./src/*" ]
12
+ },
13
+ "resolveJsonModule" : true ,
14
+ "types" : [" node" ],
7
15
"strict" : true ,
16
+ "strictNullChecks" : true ,
17
+ "noUnusedLocals" : true ,
18
+ "outDir" : " ./dist" ,
19
+ "allowSyntheticDefaultImports" : true ,
8
20
"esModuleInterop" : true ,
21
+ "forceConsistentCasingInFileNames" : true ,
22
+ "isolatedModules" : true ,
9
23
"skipLibCheck" : true
10
24
},
11
- "include" : [
12
- " **/*.ts"
13
- ],
14
- "exclude" : [
15
- " ./fixtures/**/*.*"
16
- ]
25
+ "include" : [" ./**/*" ],
26
+ "exclude" : [" node_modules" , " dist" ]
17
27
}
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ export default defineConfig({
5
5
clean : true ,
6
6
dts : true ,
7
7
format : [ 'cjs' , 'esm' ] ,
8
- // external: [
9
- // '@antfu/eslint-define-config',
10
- // 'eslint-plugin-react',
11
- // 'eslint-plugin-react-hooks',
12
- // 'eslint-plugin-react-refresh',
13
- // ],
8
+ external : [
9
+ '@antfu/eslint-define-config' ,
10
+ 'eslint-plugin-react' ,
11
+ 'eslint-plugin-react-hooks' ,
12
+ 'eslint-plugin-react-refresh' ,
13
+ ] ,
14
14
sourcemap : false ,
15
- // target: 'node14',
15
+ target : 'node14' ,
16
16
minify : false ,
17
17
shims : true ,
18
18
} )
You can’t perform that action at this time.
0 commit comments