提交 28690891 编写于 作者: fxy060608's avatar fxy060608

fix(automator): add \n

上级 ca1dcb4d
......@@ -42,7 +42,9 @@ export default [
resolveBuiltIn(`@dcloudio/uni-app-uts/lib/automator/index.uts`)
)
return {
code: code + `;import { initAutomator } from '${automatorPath}';`,
code:
// 增加个换行,避免最后是注释且无换行
code + `;\nimport { initAutomator } from '${automatorPath}';`,
map: null,
}
}
......@@ -54,7 +56,7 @@ export default [
)
)
return {
code: code + `;import '${automatorPath}';`,
code: code + `;\nimport '${automatorPath}';`,
map: null,
}
}
......
......@@ -196,7 +196,7 @@ export default () => [
}
if (uniCloudSpaces.length) {
return {
code: code + `;import '@dcloudio/uni-cloud';`,
code: code + `;\nimport '@dcloudio/uni-cloud';`,
map: null,
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册