Skip to content

Commit 9e51b15

Browse files
committed
refactor: improve proxy module output
1 parent a9354d6 commit 9e51b15

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: src/pitcher.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,7 @@ function genProxyModule(
101101
)
102102
// return a proxy module which simply re-exports everything from the
103103
// actual request.
104-
return (
105-
`import mod from ${request};` +
106-
`export default mod;` +
107-
`export * from ${request}`
108-
)
104+
return `export { default } from ${request}; export * from ${request}`
109105
}
110106

111107
function shouldIgnoreCustomBlock(loaders: Loader[]) {

0 commit comments

Comments
 (0)