Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using regexp for splitAtRoutes causes error #2214

Open
davidtaylorhq opened this issue Dec 17, 2024 · 0 comments
Open

Using regexp for splitAtRoutes causes error #2214

davidtaylorhq opened this issue Dec 17, 2024 · 0 comments

Comments

@davidtaylorhq
Copy link

davidtaylorhq commented Dec 17, 2024

splitAtRoutes has handling for regexp values. However, when this config is serialized to/from JSON, the regexp values are lost.

ember-cli-build.js:

splitAtRoutes: [/.*/]

Builds to node_modules/.embroider/resolver.json:

"splitAtRoutes": [
    {}
  ],

Resulting in this error:

[vite] Internal server error: pattern.test is not a function
at ... /@embroider/core/src/virtual-entrypoint.js:274:28

Running all @embroider/* packages on unstable b89b741

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant