ionic-team / ionic-team/rollup-plugin-node-polyfills
Error: 'default' is not exported by node_modules/rollup-plugin-node-polyfills/polyfills/buffer-es6.js, imported by node_modules/rollup-plugin-node-polyfills/polyfills/crypto-browserify.js
- Vorherrschende Sprache
- JavaScript
- Sterne
- 142
- Forks
- 65
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
index.js:
```
import { createCipheriv, createDecipheriv, pbkdf2Sync } from 'crypto'
```
rollup.config.js:
```
import nodePolyfills from 'rollup-plugin-node-polyfills';
export default {
input: 'src/index.js',
output: {
dir: 'dist',
format: 'iife'
},
plugins: [
nodePolyfills({
buffer: true,
crypto: true
})
]
}
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Reproduce the reported build using index.js and rollup.config.js with nodePolyfills configured for buffer and crypto. Start by tracing the imports between crypto-browserify.js and buffer-es6.js, and consider the build complete when the IIFE output is generated without the missing-default-export error.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- build-system
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100