Skip to content

Commit

Permalink
feat: update rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Nov 17, 2023
1 parent 9f4dd9c commit bc728f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readdirSync } from "fs-extra";
import { readdirSync } from "fs";

import terser from "@rollup/plugin-terser";
import { babel } from "@rollup/plugin-babel";
Expand All @@ -10,9 +10,11 @@ import json from "@rollup/plugin-json";
import replace from "@rollup/plugin-replace";
import resolve from "@rollup/plugin-node-resolve";
import typescript from "@rollup/plugin-typescript";
import { URL } from 'url';
import pkg from "./package.json" assert { type: 'json' };

import pkg from "./package.json";
const extensions = [".ts", ".mjs", ".js", ".cjs", ".json"];
const __dirname = new URL('.', import.meta.url).pathname;

/** @type {import('rollup').RollupOptions[]} */
const config = [
Expand Down

0 comments on commit bc728f0

Please sign in to comment.