Thanks to visit codestin.com Credit goes to github.com
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.
?raw
1 parent b168d0d commit 3ec9cdaCopy full SHA for 3ec9cda
1 file changed
packages/vite/src/node/plugins/asset.ts
@@ -209,6 +209,7 @@ export function assetPlugin(config: ResolvedConfig): Plugin {
209
code: `export default ${JSON.stringify(
210
await fsp.readFile(file, 'utf-8'),
211
)}`,
212
+ map: { mappings: '' },
213
moduleType: 'js', // NOTE: needs to be set to avoid double `export default` in `?raw&.txt`s
214
}
215
0 commit comments