Skip to content

Commit

Permalink
chore(projects): update tsx require ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Jun 4, 2024
1 parent e2e0c11 commit 2e65393
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
import 'tsx';
import { createRequire } from 'node:module';
import { defineConfig as defineConfig2 } from './dist/index.js';
import { require } from 'tsx/cjs/api';

const require = createRequire(import.meta.url);

const { defineConfig: defineConfig1 } = require('./src/index.ts');

const useBuild = false;

/** @type {import('./src/index.ts').defineConfig} */
const defineConfig = useBuild ? defineConfig2 : defineConfig1;
/** @type {{ defineConfig: import('./src/index.ts').defineConfig }} */
const { defineConfig } = require('./src/index.ts', import.meta.url);

export default defineConfig({
vue: true,
Expand Down

0 comments on commit 2e65393

Please sign in to comment.