Skip to content

Commit

Permalink
fix: fix the build sourcemap warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangmo8 committed Mar 25, 2024
1 parent 577df5d commit 3c7f1c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"name": "my-module-playground",
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev --host --port=8888",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@varlet/touch-emulator": "^3.0.3"
}
Expand Down
1 change: 1 addition & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const transformPathPlugin = createUnplugin(() => {
if (code.hasChanged()) {
return {
code: code.toString(),
map: code.generateMap({ source: moduleName, includeContent: true }),
}
}
},
Expand Down

0 comments on commit 3c7f1c4

Please sign in to comment.