Skip to content

Commit 1566821

Browse files
committed
update: change api name
1 parent 7759d70 commit 1566821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mp-compiler/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const {
2222

2323
function genComponentMPML (compiled, options, emitFile, emitError, emitWarning, fileExt) {
2424
options.components['slots'] = { src: '/components/slots', name: 'slots' }
25-
const { code: mpmlContent, compiled: compiledResult, slots, importCode } = compiler.compileToWxml(compiled, options, fileExt)
25+
const { code: mpmlContent, compiled: compiledResult, slots, importCode } = compiler.compileToMPML(compiled, options, fileExt)
2626
const { mpErrors, mpTips } = compiledResult
2727
// 缓存 slots,延迟编译
2828
cacheSlots(slots, importCode)

0 commit comments

Comments
 (0)