Skip to content

Commit

Permalink
chore: fix build config
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksteamdev committed Oct 23, 2022
1 parent 3c03e3a commit a65a6ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/vite-plugin/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import dts from 'rollup-plugin-dts'

const debug = _debug('config:rollup')

const { dependencies, optionalDependencies, peerDependencies } =
fs.readJsonSync(path.join(process.cwd(), 'package.json'))
const { dependencies, devDependencies } = fs.readJsonSync(
path.join(process.cwd(), 'package.json'),
)

const external: (string | RegExp)[] = [
...Object.keys({
...dependencies,
...optionalDependencies,
...peerDependencies,
...devDependencies,
}),
'v8',
'fs',
Expand All @@ -28,6 +28,7 @@ const external: (string | RegExp)[] = [
'node:module',
'node:fs',
'node:path',

/%PORT%/,
/%PATH%/,
]
Expand Down

0 comments on commit a65a6ab

Please sign in to comment.