Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ core/table ] TreeShaking で不具合が発生する #2229

Open

Comments

@kurudrive
Copy link
Member

vektor-inc/vk-css-optimize#18

  • そもそも TreeShaking のプログラム自体が古い
  • [data-scroll-breakpoint="table-scrollable-mobile"] というセレクタ指定だとTreeShaking新しくしてもダメかも...

再現のしかた

  • TreeShaking を有効 / 分割読み込み無効
  • composer の vk-css-optimize のバージョンを 0.2.3 に変更
  • composer-lock.json を削除して composer install
  • ブロックエディタで適当に要素を配置して非表示に指定
    → 公開画面で非表示になってない
@drill-lancer
Copy link
Member

とりあえず新しくつくりなおされたっぽいので試してみます。

https://celtislab.net/archives/20190703/css-tree-shaking/

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