Skip to content

Fix/fix loader - #2

Merged
doranteseduardo merged 2 commits into
feat-web-platformfrom
fix/fix-loader
Sep 18, 2026
Merged

doranteseduardo merged 2 commits into
feat-web-platformfrom
fix/fix-loader

Conversation

@PetkoKuzmanov

Copy link
Copy Markdown
Contributor

No description provided.

Metro refuses a non-literal import() at build time, and the webpackIgnore
comment that was there to excuse it does not survive babel-preset-expo,
which strips it before Metro's dependency collector ever sees it. So an
Expo web app did not fail against this package at runtime, it failed to
build at all, and every such consumer had to patch the published dist to
get past it.

Putting the call inside a string leaves nothing for a bundler to parse and
nothing to strip. It needs unsafe-eval, which is why importGlue stays the
documented way out for a page under a strict CSP.

The docstring above it claimed bundlers chunk the glue. They never did,
since webpackIgnore told them not to.
Nothing has been published under this name yet, so the first release takes
1.0.0 rather than 0.1.0 and the changelog heading follows it.
@doranteseduardo
doranteseduardo merged commit 27abd75 into feat-web-platform Sep 18, 2026
2 checks passed
@doranteseduardo
doranteseduardo deleted the fix/fix-loader branch September 19, 2026 15:10
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