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

Commit

Permalink
refactor: export as ES2015 Module (#10)
Browse files Browse the repository at this point in the history
feat: Export as ES Module

BREAKING CHANGE: ES Modules are not compatible with Webpack v1.x
  • Loading branch information
SpaceK33z authored and joshwiens committed Nov 20, 2017
1 parent 83f6541 commit a293c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ module.exports = function(source) {
.replace(/\u2028/g, '\\u2028')
.replace(/\u2029/g, '\\u2029');

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

0 comments on commit a293c06

Please sign in to comment.