Tracking: Vite doesn't resolve `#lib` in CSS `url()` (blocks `#lib` in `<style>` tags)
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript, vite
調査の方向性
Read packages/sv/src/migrate/migrations/sveltekit-3/tasks/lib-alias.ts and the linked Vite issue first; this follow-up is blocked until Vite supports subpath imports in CSS url(). Once that support ships, inspect the migration tests and verify that #lib paths inside <style> tags are handled consistently with other paths.
索引モデルが issue の本文から書いたものです。
説明
When Vite supports subpath imports in CSS url(), we should revisit the workaround from the Kit 3 migration.
Context
- Root cause is upstream: vitejs/vite#16155 — Vite does not resolve
#-prefixed subpath imports (e.g.#lib/...) in CSSurl(). It is approved, labeledp3-downstream-blocker, and on the Vite 8.4 milestone. - This first surfaced in #1267: the migration's
$lib→#libchange brokeurl("$lib/...")inside<style>tags. - Workaround (PR #1266): inside
<style>tags,lib-alias.tsrewrites$libto a relative path instead of#lib.
Impact
- Path shape is inconsistent:
#lib/...everywhere else, relative path inside<style>tags. - Users who hand-write
url("#lib/...")are still broken until Vite fixes it.
Follow-up (once Vite 8.4 ships support)
- Revisit
lib-alias.tsand consider emitting#libinside<style>tags so usage is consistent.
(The back-references use full GitHub issue shorthand so they resolve when posted via gh.)
- 主要言語
- TypeScript
- スター
- 513
- フォーク
- 110
- 平均マージ
- 5日 1時間
- マージ済み PR(30日)
- 24
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sveltejs/cli のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 4 日以内に返信
-
[bug] Better Auth addon generates legacy D1 binding access with SvelteKit 3 and Cloudflare adapter 8オープンbug pkg:add
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
sveltejs/cli#1450 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
pkg:add
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
sveltejs/cli#1404 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
pkg:add
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
sveltejs/cli#1399 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
enhancement pkg:migrate
難易度 3/5 1〜2日 初心者へのやさしさ 53/100
sveltejs/cli#1440 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 4 日以内に返信
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
devswha/herdr-web-ui#3875 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
area: runtime chore cli consistency dependencies developer-experience difficulty: easy discovery documentation enhancement good first issue help wanted hygiene json-output packaging priority: P3 tests version
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
discovery:other factory-active task-identify-harness-labels-done task-identify-issue-type-done
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
create-strapi-app doesn't await writing license.txt, so a failed write skips its error handlingオープンflag: invalid template issue: bug severity: low source: cli status: pending reproduction version: 5
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
strapi/strapi#28637 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信