Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Conversation

@illogic-al
Copy link
Owner

  • This commit allows importing image files with the same import name across different files.
    Tries to be valid for import pic from file.jpeg or import * as pic from file.jpeg imports.

Description

Given two files—file A located at src/subdir2/file.mdx and file B located at src/subdir2/file.mdx— any imports with the same import name in both files will be 'compressed' to just one import: the last one.

The changes introduced here make image imports across mdx files scoped to those specific files.

Documentation

Related Issues

Fixes closed issue gatsbyjs#17119. Gives more runway for (in progress?) refactor of gatsbyjs#25069 which is listed as target for providing a solution for 17119.

@illogic-al illogic-al force-pushed the illogic-al-mdx-image-import-namespacing branch 3 times, most recently from a2fbcc6 to 7ba5a33 Compare March 2, 2022 22:48
illogic-al and others added 5 commits March 3, 2022 19:40
This commit allows importing files with the same import name across different files.
Tries to be valid for `import pic from file.jpeg` or `import * as pic from file.jpeg` imports.
@illogic-al illogic-al force-pushed the illogic-al-mdx-image-import-namespacing branch from e6103e6 to 1ac268a Compare March 4, 2022 00:40
…s between identically named images.

Model actual situation being fixed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants