diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts
index daf3b0d..9fb18fa 100644
--- a/packages/core/src/index.ts
+++ b/packages/core/src/index.ts
@@ -90,9 +90,9 @@ export function VitePluginUniPages(userOptions: UserOptions = {}): Plugin {
return {
code: s.toString(),
map: s.generateMap({
- source: code,
+ source: id,
includeContent: true,
- file: id,
+ file: `${id}.map`,
}),
}
}
diff --git a/packages/playground/src/pages/index.vue b/packages/playground/src/pages/index.vue
index f91619e..f5f3631 100644
--- a/packages/playground/src/pages/index.vue
+++ b/packages/playground/src/pages/index.vue
@@ -19,7 +19,7 @@ function nav() {