Vue 3.0 ships

Vue 3.0 is released, with full documentation published at v3.vuejs.org. The framework retains its defining accessibility: it can still be dropped into a page with nothing more than a <script> tag and no build step, while remaining suited to toolchain-driven projects.

Architecture: decoupled modules and tree-shaking

The internals are a complete rewrite, split into a collection of decoupled modules. The team describes the new architecture as more maintainable, and notes that tree-shaking lets consumers remove up to half of the runtime size.

Vue 3.0 core can still be used via a simple <script> tag, but its internals has been re-written from the ground up into a collection of decoupled modules. The new architecture provides better maintainability, and allows end users to shave off up to half of the runtime size via tree-shaking.

Trying Single File Components

Single File Components (.vue files) are supported on CodePen through a purpose-built editor. Switching an existing pen to the new release is done in Pen Settings > JavaScript, where Vue 2 is toggled to Vue 3.

Next up: state in CSS

Work continues past the release. An active proposal would expose all component state to CSS, giving stylesheets access to whatever is happening in a component — and to site-wide values such as scroll and mouse position.