Closed Aloento closed 1 year ago
You could add "type": "module"
to your package.json
if you want to use a TS config at the moment.
We could ship a CJS version of the DefineConfig
to fix this. Should be fine to do I imagine.
Do we support .ts
for configs?
Yes, we do. It can end up transpiled to CJS though, which results in that require()
:
Going to reopen this as it's a legitimate issue that hasn't yet been fixed.
Describe the bug
yarn create wmr
rename
wmr.config.mjs
towmr.config.ts
then:Bug occurs with:
wmr
orwmr start
(development)wmr build
(production)wmr serve
Desktop (please complete the following information):