Skip to content

[remix] add support for .cjs and .mjs extensions for remix.config#8793

Merged
TooTallNate merged 8 commits intovercel:mainfrom
mcansh:logan/remix-config-ext
Jan 13, 2023
Merged

[remix] add support for .cjs and .mjs extensions for remix.config#8793
TooTallNate merged 8 commits intovercel:mainfrom
mcansh:logan/remix-config-ext

Conversation

@mcansh
Copy link
Copy Markdown
Contributor

@mcansh mcansh commented Oct 27, 2022

adds support for remix.config.mjs and remix.config.cjs and also updates the example/fixtures to the latest version of remix

remix-run/remix#3675

Related Issues

Fixes #1
Related to #2

📋 Checklist

Tests

  • The code changed/added as part of this PR has been covered with tests
  • All tests pass locally with yarn test-unit

Code Review

  • This PR has a concise title and thorough description useful to a reviewer
  • Issue from task tracker has a link to this PR

@mcansh mcansh changed the title chore: add support for cjs and mjs extensions for remix.config feat(remix): add support for .cjs and .mjs extensions for remix.config Oct 29, 2022
@mcansh mcansh marked this pull request as ready for review October 29, 2022 21:35
@leerob
Copy link
Copy Markdown
Contributor

leerob commented Nov 5, 2022

Thank you for opening this! 🙏

@TooTallNate TooTallNate changed the title feat(remix): add support for .cjs and .mjs extensions for remix.config [remix] add support for .cjs and .mjs extensions for remix.config Nov 8, 2022
@mcansh mcansh requested a review from ijjk as a code owner November 30, 2022 18:24
@TooTallNate TooTallNate added semver: minor PR contains new features area: remix labels Jan 12, 2023
@TooTallNate TooTallNate added semver: minor PR contains new features and removed semver: minor PR contains new features labels Jan 12, 2023
@TooTallNate TooTallNate merged commit 74c0b3e into vercel:main Jan 13, 2023
@mcansh mcansh deleted the logan/remix-config-ext branch January 13, 2023 16:04
kodiakhq bot pushed a commit that referenced this pull request Jan 18, 2023
Follow-up to #8793, which breaks dynamic import of the config file, causing some issues for remix users: https://github.com/orgs/vercel/discussions/1282

The underlying error is `MODULE_NOT_FOUND`.

`import()` should work with `file://` URIs, however, since it's using typescript, the `import` gets compiled to `require()`, which does not support `file://` protocol scheme.

Supersedes #9248.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: remix semver: minor PR contains new features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logging in should revoke existing token if any

3 participants