egoist / egoist/rollup-plugin-postcss

onExtract argument expect getExtracted call result but get getExtracted function

Open
#329 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
689
Forks
210
PR merge metrics
No merged PRs in 30d

Description

index.d.ts
```typescript
type onExtract = (asset: Readonly<{
code: any;
map: any;
codeFileName: string;
mapFileName: string;
}>) => boolean;
```

index.js
```javascript
if (options.onExtract) {
const shouldExtract = yield options.onExtract(getExtracted);

if (shouldExtract === false) {
return;
}
}
``

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.