Skip to content

Commit

Permalink
fix: remove import assert for older node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tkskto committed Dec 4, 2022
1 parent 7aa4f62 commit 96af2e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import commonjs from '@rollup/plugin-commonjs';
import {nodeResolve} from '@rollup/plugin-node-resolve';
import json from '@rollup/plugin-json';
import terser from '@rollup/plugin-terser';
import pkg from './package.json' assert {type: 'json'};
import { readFile } from 'fs/promises';
const pkg = JSON.parse(
await readFile(
new URL('./package.json', import.meta.url)
)
);

let dependencies = '';

Expand Down

0 comments on commit 96af2e7

Please sign in to comment.