browserify / browserify/path-browserify
Use deno_std path module?
- Vorherrschende Sprache
- JavaScript
- Sterne
- 192
- Forks
- 54
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Would you mind switch to use `deno_std`'s path module? API is compatible with Node.js, simply use `deno bundle` to output es module, make bundlers do tree shaking better
```ts
// mod.ts
import { win32, posix } from 'https://deno.land/std@0.163.0/path/mod.ts'
export { win32, posix }
export const {
basename,
delimiter,
dirname,
extname,
format,
fromFileUrl,
isAbsolute,
join,
normalize,
parse,
relative,
resolve,
sep,
toFileUrl,
toNamespacedPath
} = posix
```
```bash
deno bundle mod.ts index.js
```
```jsonc
// package.json
{
"module": "./index.js",
"main": "./index.js",
"type": "module"
}
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start by comparing the current module entry point with the proposed mod.ts exports, then review package.json and the deno bundle command. Confirm the deno_std path API works for the package's existing consumers and that the generated ES module and package metadata preserve the current interface.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- deno, javascript
- Bereich
- web-dev
- Issue-Typ
- Refactoring
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100