Skip to content

Commit

Permalink
fix: remove workaround
Browse files Browse the repository at this point in the history
fixed in vitejs/vite#4061 and released v2.4.0
  • Loading branch information
Max Beatty committed Jul 12, 2021
1 parent 75a793d commit ecda884
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/vite-jest/bin/vite-jest.js
Expand Up @@ -7,10 +7,6 @@ import { createRequire } from 'module'

const require = createRequire(import.meta.url)
const jestPath = require.resolve('jest/bin/jest')
const vitePath = require.resolve('vite'); // => vite/dist/node/index.js

const viteClientDirectory = path.resolve(path.dirname(vitePath), '../client');
fs.writeFileSync(path.join(viteClientDirectory, 'package.json'), JSON.stringify({ type: "module" }))

execa.sync('node', [
'--experimental-vm-modules',
Expand Down

0 comments on commit ecda884

Please sign in to comment.