Skip to content

Commit

Permalink
fix!: avoid mixed named and default exports
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `import pathe from 'pathe` should be changes to `import * as pathe from 'pathe'`
  • Loading branch information
pi0 committed May 5, 2022
1 parent 61dfd2b commit 89e35ad
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
// Reference https://nodejs.org/api/path.html
import type path from 'path'

import * as _path from './path'
export * from './path'

// Default export
export default {
..._path
} as Omit<typeof path, 'win32' | 'posix'>

0 comments on commit 89e35ad

Please sign in to comment.