From 215fba72492b62b1f55ec681c38e73d644e4401f Mon Sep 17 00:00:00 2001 From: Kees Kluskens Date: Sun, 1 Oct 2017 03:24:21 +0200 Subject: [PATCH] refactor: export as ES2015 Module (#10) feat: Export as ES Module BREAKING CHANGE: ES Modules are not compatible with Webpack v1.x --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a59e712..f1c95c6 100644 --- a/index.js +++ b/index.js @@ -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); }