Skip to content

Commit f0e307f

Browse files
committed
fix: add raw output if no modification is made
1 parent d943328 commit f0e307f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/mkdist.ts

+7
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ function defineVueLoader(options?: DefineVueLoaderOptions): Loader {
109109
)
110110

111111
if (!modified) {
112+
addOutput({
113+
path: input.path,
114+
srcPath: input.srcPath,
115+
extension: '.vue',
116+
contents: raw,
117+
declaration: false,
118+
})
112119
return output
113120
}
114121

0 commit comments

Comments
 (0)