Skip to content

Commit

Permalink
chore: use --bundleConfigAsCjs to load rollup config
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cexbrayat committed Oct 14, 2022
1 parent d0ac5e3 commit c08d29f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -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",
Expand Down

0 comments on commit c08d29f

Please sign in to comment.