@web/rollup-plugin-import-meta-assets
Advanced tools
Comparing version 1.0.5 to 1.0.6
# @web/rollup-plugin-import-meta-assets | ||
## 1.0.6 | ||
### Patch Changes | ||
- b77e5d16: fix(rollup-plugin-import-meta-assets): skip unnecessary sourcemap generation | ||
## 1.0.5 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@web/rollup-plugin-import-meta-assets", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -67,2 +67,3 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
const magicString = new MagicString(code); | ||
let modifiedCode = false; | ||
@@ -93,2 +94,3 @@ await asyncWalk(ast, { | ||
); | ||
modifiedCode = true; | ||
} catch (error) { | ||
@@ -107,3 +109,3 @@ if (warnOnError) { | ||
code: magicString.toString(), | ||
map: magicString.generateMap({ hires: true }), | ||
map: modifiedCode ? magicString.generateMap({ hires: true }) : null, | ||
}; | ||
@@ -110,0 +112,0 @@ }, |
Sorry, the diff of this file is not supported yet
9790
127