Skip to content

Commit

Permalink
feat: use preserve modules for package build
Browse files Browse the repository at this point in the history
  • Loading branch information
azat-io committed Apr 13, 2024
1 parent ce76606 commit be13a21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ export default defineConfig({

return `${directory}${entryName}.${format === 'es' ? 'mjs' : 'js'}`
},
name: 'eslint-plugin-perfectionist',
formats: ['cjs', 'es'],
},
rollupOptions: {
external: (id: string) => !id.startsWith('.') && !path.isAbsolute(id),
output: {
preserveModules: true,
},
},
minify: false,
},
})

0 comments on commit be13a21

Please sign in to comment.