From 0c78d61d5e7ff3e87cedda2be6b6d8425eb63c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Exbrayat?= Date: Fri, 14 Oct 2022 11:09:33 +0200 Subject: [PATCH] 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 https://github.com/vuejs/test-utils/pull/1815 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1cb2e976a..045c2b612 100644 --- a/package.json +++ b/package.json @@ -75,8 +75,8 @@ "test:watch": "vitest --watch", "test:build": "vitest --mode test-build", "tsd": "tsc -p test-dts/tsconfig.tsd.json", - "build": "rollup -c rollup.config.ts", - "prepare": "rollup -c rollup.config.ts", + "build": "rollup -c rollup.config.ts --bundleConfigAsCjs", + "prepare": "rollup -c rollup.config.ts --bundleConfigAsCjs", "lint": "eslint --ext .ts src/ tests/", "lint:fix": "pnpm run lint --fix", "docs:dev": "vitepress dev docs",