diff --git a/code/addons/vitest/postinstall.cjs b/code/addons/vitest/postinstall.cjs index 4a50bbe539e3..29374d2a9382 100644 --- a/code/addons/vitest/postinstall.cjs +++ b/code/addons/vitest/postinstall.cjs @@ -1 +1 @@ -module.exports = require('./dist/postinstall.js'); +module.exports = require('./dist/postinstall.cjs'); diff --git a/code/addons/vitest/preset.cjs b/code/addons/vitest/preset.cjs index 87f1602c2f26..4c4e36fbb3bb 100644 --- a/code/addons/vitest/preset.cjs +++ b/code/addons/vitest/preset.cjs @@ -1,8 +1,3 @@ -function managerEntries(entry = []) { - return [...entry, require.resolve('./dist/manager.js')]; -} - module.exports = { - managerEntries, - ...require('./dist/preset'), + ...require('./dist/preset.cjs'), };