Skip to content

Support loading .glsl files as text#1060

Draft
Janpot wants to merge 7 commits intomasterfrom
feat/glsl-file-support
Draft

Support loading .glsl files as text#1060
Janpot wants to merge 7 commits intomasterfrom
feat/glsl-file-support

Conversation

@Janpot
Copy link
Copy Markdown
Member

@Janpot Janpot commented Jan 21, 2026

  • Add babel-plugin-inline-import to inline .glsl files as strings
  • Define TEXT_EXTENSIONS array as single source of truth for text-based imports
  • Add skipExtensions option to babel-plugin-resolve-imports

@mui-bot
Copy link
Copy Markdown

mui-bot commented Jan 21, 2026

Bundle size report

Bundle Parsed size Gzip size
@base-ui-components/react 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@Janpot Janpot added the scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). label Jan 21, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 21, 2026

Deploy Preview for mui-internal ready!

Name Link
🔨 Latest commit a379d8b
🔍 Latest deploy log https://app.netlify.com/projects/mui-internal/deploys/6970ea0b04be76000838a5bd
😎 Deploy Preview https://deploy-preview-1060--mui-internal.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jan 27, 2026
@oliviertassinari oliviertassinari temporarily deployed to feat/glsl-file-support - code-infra-dashboard PR #1060 January 27, 2026 13:27 — with Render Destroyed
@oliviertassinari oliviertassinari temporarily deployed to feat/glsl-file-support - mui-tools-public PR #1060 January 27, 2026 13:27 — with Render Destroyed
@github-actions
Copy link
Copy Markdown

This pull request has been inactive for 30 days. Please remove the stale label or leave a comment to keep it open. Otherwise, it will be closed in 15 days.

@github-actions github-actions Bot added the stale Inactive for 7 days (issues) or 30 days (PRs); closed after 5 or 15 more days if no update. label Feb 26, 2026
},
'babel-plugin-transform-inline-environment-variables',
],
[pluginInlineImport, { extensions: ['.glsl'] }, 'babel-plugin-inline-import'],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well make it configurable for any future similar extensions

@Janpot Janpot marked this pull request as draft February 27, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: out-of-date The pull request has merge conflicts and can't be merged. scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). stale Inactive for 7 days (issues) or 30 days (PRs); closed after 5 or 15 more days if no update.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants