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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 8 commits into from Jan 13, 2023
Merged

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

merged 8 commits into from Jan 13, 2023

Conversation

mcansh
Copy link
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
Member

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 added the pr: automerge Automatically merge the PR when checks pass label Jan 12, 2023
@TooTallNate TooTallNate added pr: automerge Automatically merge the PR when checks pass and removed pr: automerge Automatically merge the PR when checks pass labels Jan 13, 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 pr: automerge Automatically merge the PR when checks pass 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