Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Commit b4c131d

Browse files
committed
improve custom compiler in readme
1 parent a00c5e4 commit b4c131d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,13 @@ module.exports = {
182182
// register custom compilers
183183
customCompilers: {
184184
// for tags with lang="ts"
185-
ts: function (content, cb) {
186-
// compile some TypeScript...
185+
ts: function (content, cb, compiler, filePath) {
186+
// content: content extracted from lang="ts" blocks
187+
// cb: the callback to call when you're done compiling
188+
// compiler: the vueify compiler instance
189+
// filePath: the path for the file being compiled
190+
//
191+
// compile some TypeScript... and when you're done:
187192
cb(null, result)
188193
}
189194
}

0 commit comments

Comments
 (0)