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 Oct 1, 2017
1 parent e234bde commit 215fba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -5,5 +5,5 @@
module.exports = function(content) {
this.cacheable && this.cacheable();
this.value = content;
return "module.exports = " + JSON.stringify(content);
return "export default " + JSON.stringify(content);
}

0 comments on commit 215fba7

Please sign in to comment.