Jelajahi Sumber

Add sourcemaps (#9949)

This would create `build/three.js.map` and `build/three.modules.js.map` alongside the bundles. If you wanted inline sourcemaps instead (not recommended, but possible!) you would use `sourceMap: 'inline'`.

Ref https://github.com/mrdoob/three.js/issues/9941
Rich Harris 8 tahun lalu
induk
melakukan
c03600ba3f
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      rollup.config.js

+ 2 - 1
rollup.config.js

@@ -42,5 +42,6 @@ export default {
 			dest: 'build/three.modules.js'
 		}
 	],
-	outro: outro
+	outro: outro,
+	sourceMap: true
 };