This repository was archived by the owner on Aug 16, 2022. It is now read-only.
This repository was archived by the owner on Aug 16, 2022. It is now read-only.
Kickoff: redesign #28
Closed
Description
So far, we have seen the logic of compiling an SFC duplicated in multiple projects:
vue-loader
vueify
rollup-plugin-vue
jest-vue
...and others. The goal here is to extract shared logic regarding SFC compilation into a dedicated package to avoid redundancy and ensure all of these tools are on the same page regarding SFC features and behavior.
Some initial thoughts. APIs should include:
- SFC -> descriptor parsing
- ? how to handle pre-processors vs. webpack loader chaining
- Template -> render fn compilation
- CSS handling (scoped CSS, postcss plugins, CSS modules)
Not entirely clear how much we should and could extract from vue-loader
, as a lot of it is tightly coupled to webpack, but let's discuss.
/cc @znck @eddyerburgh @phanan @vuejs/collaborators