Browse Source

build: fix source map generation

Renée Kooi 4 năm trước cách đây
mục cha
commit
d8b1eadf49
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      bin/build-lib.js

+ 1 - 1
bin/build-lib.js

@@ -47,7 +47,7 @@ async function buildLib () {
       }
     }
 
-    const { code, map } = await transformFile(file, {})
+    const { code, map } = await transformFile(file, { sourceMaps: true })
     await mkdirp(path.dirname(libFile))
     await Promise.all([
       writeFile(libFile, code),