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

Commit a293c06

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 83f6541 commit a293c06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ module.exports = function(source) {
99
.replace(/\u2028/g, '\\u2028')
1010
.replace(/\u2029/g, '\\u2029');
1111

12-
return "module.exports = " + json;
12+
return "export default " + json;
1313
}

0 commit comments

Comments
 (0)