bahmutov / bahmutov/cy-rollup

Error: UMD and IIFE output formats are not supported for code-splitting builds.

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11
Forks
2
PR merge metrics
No merged PRs in 30d

Description

I tried to use cy-rollup to test an application. However it fails with this error:

```
Error: UMD and IIFE output formats are not supported for code-splitting builds.
```

Currently code-splitting can't be disable in rollup: https://github.com/rollup/rollup/issues/2756

So, could cy-rollup use an alternative output format?
https://github.com/bahmutov/cy-rollup/blob/fd85ba5cf5795dfb7b67f4269eae4aa9ad8cf2c8/src/index.js#L38-L43

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at src/index.js lines 38-43, where cy-rollup configures the Rollup output. Check how the current format interacts with code-splitting, then make the preprocessor use a compatible output format and verify that Cypress preprocessing no longer raises the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cypress, javascript, rollup
Domain
build-system, testing-qa, tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.