Skip to content

Commit

Permalink
Do not write postcss changes back to in memory FS
Browse files Browse the repository at this point in the history
  • Loading branch information
George-Payne committed Jun 7, 2023
1 parent ac896ff commit 0841794
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,8 @@ export function postcss(opts: d.PluginOptions = {}): d.Plugin {
// .filter((message) => message.type === 'dir-dependency')
// .map((dependency) => () => dependency.file);

// write this css content to memory only so it can be referenced
// later by other plugins (autoprefixer)
// but no need to actually write to disk
context.fs.writeFile(results.id, results.code, { inMemoryOnly: true }).then(() => {
resolve(results);
});
resolve(results);
}

return results;
})
.catch((err: any) => {
loadDiagnostic(context, err, fileName);
Expand Down

0 comments on commit 0841794

Please sign in to comment.