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
2022-10-12のJS: Rollup v3、Volar 1.0(Vue LSP)、Satori(HTML + CSS = SVG) #1013
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…orihtml-css-svg.md
…orihtml-css-svg.md
…orihtml-css-svg.md
…orihtml-css-svg.md
…orihtml-css-svg.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rollup 3.0.0がリリースされました。
破壊的な変更として、プラグインのAPIの変更、オプションの変更が行われています。
また、デフォルトで
import()
を維持するように変更、chunkのアルゴリズムの変更なども含まれています。そのほかには、デフォルトでNode.jsのESMサポートとの相互運用性を改善するために
output.interop
/output.exports
/output.esModule
オプションのデフォルト値が変更されています。基本的には
__esModule
というNode.jsが考慮しない(ESMとCJSの総合運用性のために使われていた)プロパティを減らす方向になっています。詳しい変更内容は次のPRを参照すると良さそうです。加えて、ECMAScript Proposal Stage 3のImport Assertionsのサポートも追加されています。
VueテンプレートのIDEサポートなどを提供するVolar 1.0がリリースされました。
<template lang="pug">
のbuilt-inサポートを終了しプラグイン化されています。vue-tsc
が--watch
と--declaration --emitDeclarationOnly
をサポートしています。また、コアモジュールがVueなどのフレームワークに依存しなくなるなり、サンプルとしてSvelte Langauge Server Exampleが公開されています。
HTMLとCSSで書いたコードをSVG画像へと変換するSatoriというライブラリが公開されています。
OGP(OG)イメージのために、コンテンツに基づいた画像を生成することが増えています。
Puppeteerなどを利用すればHTMLとCSSで書いたデザインから画像(スクリーンショット)を再生することはできました。
しかし、ブラウザプロセスを立ち上げると時間がかかったりリソースの消費も大きいです。
そのため、SatoriではFlexboxのレイアウトエンジンを実装として知られるYogaのWasmビルド版を使い、HTMLとCSSのサブセットを実装しSVGを生成しています。
次の記事で詳しい解説が書かれています。