Skip to content

Commit c08d29f

Browse files
committed
chore: use --bundleConfigAsCjs to load rollup config
Ideally, we'd like to use a `mjs` config, but that necessitates an import type assertion for the import of `package.json`, and this feature is not supported by node v14. So we'll be able to use a `rollup.config.mjs` config only when we'll stop supporting node v14. See #1815
1 parent d0ac5e3 commit c08d29f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
"test:watch": "vitest --watch",
7676
"test:build": "vitest --mode test-build",
7777
"tsd": "tsc -p test-dts/tsconfig.tsd.json",
78-
"build": "rollup -c rollup.config.ts",
79-
"prepare": "rollup -c rollup.config.ts",
78+
"build": "rollup -c rollup.config.ts --bundleConfigAsCjs",
79+
"prepare": "rollup -c rollup.config.ts --bundleConfigAsCjs",
8080
"lint": "eslint --ext .ts src/ tests/",
8181
"lint:fix": "pnpm run lint --fix",
8282
"docs:dev": "vitepress dev docs",

0 commit comments

Comments
 (0)