Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit 793183a

Browse files
committed
refactor: es6 default export & drops cacheable
1 parent b36750d commit 793183a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Author Tobias Koppers @sokra
44
*/
55
export default function (content) {
6-
this.cacheable && this.cacheable(); // eslint-disable-line no-unused-expressions
76
this.value = content;
8-
return `module.exports = ${JSON.stringify(content)}`;
7+
return `export default = ${JSON.stringify(content)}`;
98
}

0 commit comments

Comments
 (0)