You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Svelte 4 will only output ESM, but he's setup a transformer to change that output to CJS, so that it will run with Jest. More details here: storybookjs/addon-svelte-csf#132 (comment)
I think it'd be reasonable to try to support it as it'd probably make upgrading to Svelte 4 easier for folks. We can leave ESM as the default
Svelte 4 will only output ESM, but he's setup a transformer to change that output to CJS, so that it will run with Jest. More details here: storybookjs/addon-svelte-csf#132 (comment)
I think it'd be reasonable to try to support it as it'd probably make upgrading to Svelte 4 easier for folks. We can leave ESM as the default
Today, svelte-jester throw an exception if we try to use Svelte 4 with a (classic) cjs setup.
To help with the migration path to esm and jest, it would be great to not throw an exception here but maybe add a warning to the documentation.
It works by chaining babel-jest after svelte-jester if I remove the exception, with the following config:
Integrating the transformation esm->csj could be great, but I don't think it's really necessary if it's documented.
The text was updated successfully, but these errors were encountered: