File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change
1
+ import { readFile , writeFile } from "node:fs/promises"
1
2
import buble from "@rollup/plugin-buble"
2
- import { promises as fs } from "node:fs"
3
3
4
4
const copy = ( from , to ) => ( {
5
- async writeBundle ( ) { await fs . writeFile ( to , await fs . readFile ( from ) ) }
5
+ async writeBundle ( ) { await writeFile ( to , await readFile ( from ) ) }
6
6
} )
7
7
8
8
export default {
Original file line number Diff line number Diff line change
1
+ import { readFile , writeFile } from "node:fs/promises"
1
2
import buble from "@rollup/plugin-buble"
2
- import { promises as fs } from "node:fs"
3
3
4
4
const copy = ( from , to ) => ( {
5
- async writeBundle ( ) { await fs . writeFile ( to , await fs . readFile ( from ) ) }
5
+ async writeBundle ( ) { await writeFile ( to , await readFile ( from ) ) }
6
6
} )
7
7
8
8
export default {
Original file line number Diff line number Diff line change
1
+ import { readFile , writeFile } from "node:fs/promises"
1
2
import buble from "@rollup/plugin-buble"
2
- import { promises as fs } from "node:fs"
3
3
4
4
const copy = ( from , to ) => ( {
5
- async writeBundle ( ) { await fs . writeFile ( to , await fs . readFile ( from ) ) }
5
+ async writeBundle ( ) { await writeFile ( to , await readFile ( from ) ) }
6
6
} )
7
7
8
8
export default [
You can’t perform that action at this time.
0 commit comments