Skip to content

Commit

Permalink
Simplify imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jun 27, 2024
1 parent ba22623 commit da521f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions acorn-loose/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {readFile, writeFile} from "node:fs/promises"
import buble from "@rollup/plugin-buble"
import {promises as fs} from "node:fs"

const copy = (from, to) => ({
async writeBundle() { await fs.writeFile(to, await fs.readFile(from)) }
async writeBundle() { await writeFile(to, await readFile(from)) }
})

export default {
Expand Down
4 changes: 2 additions & 2 deletions acorn-walk/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {readFile, writeFile} from "node:fs/promises"
import buble from "@rollup/plugin-buble"
import {promises as fs} from "node:fs"

const copy = (from, to) => ({
async writeBundle() { await fs.writeFile(to, await fs.readFile(from)) }
async writeBundle() { await writeFile(to, await readFile(from)) }
})

export default {
Expand Down
4 changes: 2 additions & 2 deletions acorn/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {readFile, writeFile} from "node:fs/promises"
import buble from "@rollup/plugin-buble"
import {promises as fs} from "node:fs"

const copy = (from, to) => ({
async writeBundle() { await fs.writeFile(to, await fs.readFile(from)) }
async writeBundle() { await writeFile(to, await readFile(from)) }
})

export default [
Expand Down

0 comments on commit da521f6

Please sign in to comment.