メインコンテンツまでスキップ
バージョン: v4.34

Stencil Goals And Objectives

Stencil aims to combine the best concepts of the most popular frontend frameworks into a compile-time tool rather than run-time tool. It's important to stress that Stencil's goal is to not become or be seen as a "framework", but rather our goal is to provide a great developer experience and tooling expected from a framework, while using web-standards within the browser at run-time. In many cases, Stencil can be used as a drop in replacement for traditional frontend frameworks given the capabilities now available in the browser, though using it as such is certainly not required.

Web Standards​

Components generated by Stencil in the end are built on top of web components, so they work in any major framework or with no framework at all. Additionally, other standards heavily relied on include ES Modules and dynamic imports which have proven to replace traditional bundlers which add unnecessary complexities and run-time JavaScript. By using web-standards, developers can learn and adopt a standard API documented across the world, rather than custom framework APIs that continue to change.

自動最適化​

コンポーネントや、Webサイトのパフォーマンスを向上させるために、開発者がしなければならない最適化や、微調整は数え切れないほどあります。Stencilのコンパイラを使用すると、最適化されたコンポーネントを生成することができます。

Future-Friendly​

ソフトウェア開発の世界が進化し続ける中、コンパイラも進化し続けています。コンパイラは、コンポーネントの完全な書き換えの代わりに、標準のコンポーネント・モデルを共通の入力として使用して、最適化を継続的に行うことができます。コンパイラを使用することで、開発者は、将来的に使いやすいコンポーネントを、作成することができます。また、何度もやり直すことなく最新の最適化を行うことができます。さらに、APIに何か変更があった場合、コンパイラは自動的に調整を行い、更新する必要があるものを正確に開発者に通知することができます。

ランタイムパフォーマンス​

Instead of writing custom client-side JavaScript which every user needs to download and parse for the app to work, Stencil instead prefers to use the already amazing APIs built directly within the browser. These APIs include Custom Elements.

Tiny API​

Stencil purposely does not come with a large custom API which needs to be learned and re-learned, but rather heavily relies on, you guessed it, web-standards. Again, our goal is to not create yet-another-framework, but rather provide tooling for developers to generate future-friendly components using APIs already baked within the browser. The smaller the API, the easier to learn, and the less that can be broken.

小さなAPI​

Stencilは、学習して再学習する必要のある、大規模なカスタムAPIを意図的に省いています。繰り返しになりますが、私たちの目標は、別のフレームワークを作るのではなく、ブラウザ内で既に実装されているAPIを使って、開発者が将来的に使いやすいコンポーネントを生成するためのツールを提供することです。APIが小さければ小さいほど、学習が容易であり、またバージョンアップなどで破損する可能性も低くなります。

Wide Browser Support​

For the small minority of browsers that do not support modern browser features and APIs, Stencil will automatically polyfill them on-demand. What this means is that for browsers that already support the feature natively, they will not have to download and parse any unnecessary JavaScript. The great news is that in today's web landscape, most modern APIs are already shipping for what Stencil requires.