We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e7250a commit 25e320eCopy full SHA for 25e320e
packages/taro-vite-runner/src/harmony/babel.ts
@@ -14,6 +14,7 @@ export default (viteCompilerContext: ViteHarmonyCompilerContext): PluginOption =
14
if (/(\.(et|j|t)sx?|\.vue)$/.test(id.split('?')[0])) {
15
const result = transformSync(code, {
16
filename: id,
17
+ sourceMaps: true,
18
plugins: [
19
[
20
function renameImportPlugin (babel: typeof BabelCore): BabelCore.PluginObj<BabelCore.PluginPass> {
@@ -75,6 +76,7 @@ export default (viteCompilerContext: ViteHarmonyCompilerContext): PluginOption =
75
76
// TODO 后续考虑使用 SWC 插件的方式实现
77
const result = await transformAsync(code, {
78
79
80
81
82
require('babel-plugin-transform-taroapi'),
0 commit comments