Skip to content

Instantly share code, notes, and snippets.

Created May 24, 2017 09:25
What would you like to do?
vue testing with tape

How to convert a SFC to something I can require?

  • bundle.js does not work
  • need to compile each part of the SFC individually

vue loader

  • vue loader vue-loader is a loader for Webpack that can transform Vue components written in the following format into a plain JavaScript module vue-loader will parse the file, extract each language block, pipe them through other loaders if necessary, and finally assemble them back into a CommonJS module whose module.exports is a Vue.js component options object.
  • vue loader configs

moar stuff

  • avoriaz
  • ava is building a recipe for testing SFCs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment