Skip to content

Commit

Permalink
fix: fixed linting of vite component vonfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Powerplex committed Feb 9, 2023
1 parent 1f9a265 commit 7d1c0e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions config/component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { createRequire } from 'node:module'

import react from '@vitejs/plugin-react'
import path from 'path'
import { terser } from 'rollup-plugin-terser'
import dts from 'vite-plugin-dts'

const pkg = require(path.resolve(__dirname, '../package.json'))
const require = createRequire(import.meta.url)

const pkg = require('../package.json')
const deps = Object.keys(pkg.dependencies || {})
const devDeps = Object.keys(pkg.devDependencies || {})

Expand All @@ -30,4 +32,4 @@ export default {
jsxRuntime: 'classic',
}),
],
}
}

0 comments on commit 7d1c0e7

Please sign in to comment.