-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
serverDependenciesToBundle
fails in v1.5.1 with RegExps
#3251
Comments
@ZipBrandon just upgraded my app that use RegExps for |
This issue has been automatically closed because we haven't received a response from the original author 🙈. This automation helps keep the issue tracker clean from issues that are unactionable. Please reach out if you have more information for us! 🙂 |
Following up on this, this was my error. I had the old API of const { getDependenciesToBundle } = require(`@remix-run/dev`);
...
serverDependenciesToBundle: [
...getDependenciesToBundle(
/rehype.*/,
/remark.*/,
/unified.*/,
/micromark.*/,
/mdast.*/,
/react-querybuilder.*/,
/react-day-picker.*/,
/react-dnd-html5-backend.*/,
/@udecode\/plate-ui-dnd.*/,
/@udecode\/plate.*/,
/@udecode\/plate-serializer-md.*/,
`@sindresorhus/slugify`,
`react-markdown`,
`micromark-util-symbol`,
`zwitch`,
`fault`,
`ccount`,
`react-dnd`,
`parse-entities`,
`stringify-entities`,
`hastscript`,
`ts-invariant`,
`unist-util-map`,
`markdown-table`,
`longest-streak`,
`vfile`,
`vfile-message`,
`@apollo/client`,
`@sindresorhus/transliterate`,
),
], |
What version of Remix are you using?
1.5.1
Steps to Reproduce
Do something similar to https://remix.run/docs/en/v1/api/conventions#serverdependenciestobundle
Expected Behavior
Remix to accept RegExps for ESM exclusion.
Actual Behavior
The text was updated successfully, but these errors were encountered: