Skip to content

Add docs for bytes and text modules plugins - #3239

Open
nicolo-ribaudo wants to merge 1 commit into
babel:mainfrom
nicolo-ribaudo:docs-bytes-and-text-modules
Open

Add docs for bytes and text modules plugins#3239
nicolo-ribaudo wants to merge 1 commit into
babel:mainfrom
nicolo-ribaudo:docs-bytes-and-text-modules

Conversation

@nicolo-ribaudo

Copy link
Copy Markdown
Member

@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for babel-v8 ready!

Name Link
🔨 Latest commit 54d848b
🔍 Latest deploy log https://app.netlify.com/projects/babel-v8/deploys/6a7609ed54489b00083ab02a
😎 Deploy Preview https://deploy-preview-3239--babel-v8.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.

@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for babel-v9 ready!

Name Link
🔨 Latest commit 54d848b
🔍 Latest deploy log https://app.netlify.com/projects/babel-v9/deploys/6a7609ed7669db000808de61
😎 Deploy Preview https://deploy-preview-3239--babel-v9.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.


Transforms `import ... with { type: "bytes" }` declarations to platform-specific API to read the imported file as an immutable `Uint8Array`.

:::caution

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.

Nit: There are quite a few caution tip in this docs: https://deploy-preview-3239--babel-v8.netlify.app/docs/babel-plugin-proposal-bytes-modules

I think it is a bit overloaded, Can we group them into a list within one caution tip?


:::caution
This plugin only transforms import declarations and not dynamic `import()` calls.
:::

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.

IMO these two can be combined into something like "The plugin only supports CommonJS and transforms static import declarations". We can fairly assume people using AMD/SystemJS/UMD know what is CommonJS.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants