Skip to content

Release v0.3.4#62

Merged
titouanmathis merged 6 commits intomainfrom
release/0.3.4
Mar 12, 2026
Merged

Release v0.3.4#62
titouanmathis merged 6 commits intomainfrom
release/0.3.4

Conversation

@titouanmathis
Copy link
Contributor

Changes

Changed

Fixed

titouanmathis and others added 6 commits March 11, 2026 11:31
Move publicPath resolution from resolveDependencies() (called before webpack
config is built) into the preset's extendWebpack callback, where the consumer's
output.publicPath is already available.

- Extract resolvePublicPath() into a shared utility
- Mutate twigData.importMap in extendWebpack to prefix self-hosted entries
- Remove publicPath param from resolveDependencies() (always bare paths)
- Update PlaygroundDependenciesPlugin to use shared resolvePublicPath()

Fixes #60

Co-authored-by: Claude <claude@anthropic.com>
Co-authored-by: Claude <claude@anthropic.com>
The plugin already owns self-hosted dep bundling, _headers emission, and
publicPath resolution. The import map mutation is the same concern and now
lives in the plugin's thisCompilation hook instead of the preset's
extendWebpack callback.

The plugin receives the twigData.importMap reference and prefixes
self-hosted entries during compilation — before HtmlWebpackPlugin
renders templates.

Co-authored-by: Claude <claude@anthropic.com>
…ublic-path

Fix: infer publicPath from webpack output.publicPath for import map
Co-authored-by: Claude <claude@anthropic.com>
Co-authored-by: Claude <claude@anthropic.com>
@github-actions
Copy link

Export Size

Unchanged

@studiometa/playground

Name Size Diff
createPlayground 1 B -
unzip 1 B -
zip 1 B -

@cloudflare-workers-and-pages
Copy link

Deploying studiometa-playground with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6ee2f08
Status: ✅  Deploy successful!
Preview URL: https://bdfd1380.studiometa-playground.pages.dev
Branch Preview URL: https://release-0-3-4.studiometa-playground.pages.dev

View logs

@codecov
Copy link

codecov bot commented Mar 12, 2026

Codecov Report

❌ Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 18.51%. Comparing base (db2aff6) to head (6ee2f08).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
packages/playground/src/lib/presets/playground.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
+ Coverage   17.82%   18.51%   +0.68%     
==========================================
  Files          53       54       +1     
  Lines         937      940       +3     
  Branches      165      165              
==========================================
+ Hits          167      174       +7     
+ Misses        757      753       -4     
  Partials       13       13              
Flag Coverage Δ
unittests 18.51% <94.73%> (+0.68%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@titouanmathis titouanmathis merged commit 9e42a5b into main Mar 12, 2026
7 checks passed
@titouanmathis titouanmathis deleted the release/0.3.4 branch March 12, 2026 16: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.

1 participant