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

Commit 215fba7

Browse files
SpaceK33zjoshwiens
authored andcommitted
refactor: export as ES2015 Module (#10)
feat: Export as ES Module BREAKING CHANGE: ES Modules are not compatible with Webpack v1.x
1 parent e234bde commit 215fba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
module.exports = function(content) {
66
this.cacheable && this.cacheable();
77
this.value = content;
8-
return "module.exports = " + JSON.stringify(content);
8+
return "export default " + JSON.stringify(content);
99
}

0 commit comments

Comments
 (0)