3 ms·
There is no complete stand-alone Vue SFC compiler; every SFC compiler is written as a plugin for a specific bundler. The 3 official implementations are the Web
by LukeShu 9y ago
There is no complete stand-alone Vue SFC compiler; every SFC compiler is written as a plugin for a specific bundler. The 3 official implementations are the Webpack, Browserify, and Rollup plugins. There's no significant code-sharing between them (and I'm sure there are no subtle differences that will bite you), and the Browserify and Rollup plugins can lag months behind the Webpack one--they still don't support functional SFCs, which were added in Vue 2.5.0 back in October.
So, how does vue-brunch work? It declares the Browserify plugin as a dependency, and wraps it.
- unclebucknasty 9y agoExactly this. And Rollup wasn't available (or at least well-publicized) when I was evaluating about a year ago.