Skip to content

Commit

Permalink
chore: convert rollup config to commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
balsigergil committed Jan 21, 2024
1 parent daaf28d commit 2b3a709
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dev": "npm run dev -w example",
"test": "playwright test",
"build": "rimraf dist && concurrently \"npm run build:js\" \"npm run build:css\" \"npm run build:types\" && node scripts/copy.js",
"build:js": "rollup -c rollup.config.js",
"build:js": "rollup -c rollup.config.cjs --bundleConfigAsCjs",
"build:css": "postcss src/*.css --dir dist --ext .min.css",
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationDir dist/types",
"lint": "eslint --ext .ts ./src",
Expand Down
6 changes: 3 additions & 3 deletions rollup.config.js → rollup.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from "rollup";
import typescript from "@rollup/plugin-typescript";
import terser from "@rollup/plugin-terser";
const { defineConfig } = require("rollup");
const typescript = require("@rollup/plugin-typescript");
const terser = require("@rollup/plugin-terser");

import pkg from "./package.json" with { type: "json" };

Expand Down

0 comments on commit 2b3a709

Please sign in to comment.