Skip to content

Commit

Permalink
Remove ability to specify module export format
Browse files Browse the repository at this point in the history
Always use ESM to take advantage of the webpack's dead-code detection
  • Loading branch information
visualfanatic authored Oct 11, 2018
1 parent a567fbe commit 151c5d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = (content, options = {}) => {
const {
svgoConfig = {},
svgoPath = null,
esmExport = false,
} = options;

let svg = Promise.resolve(content);
Expand Down Expand Up @@ -45,7 +44,7 @@ module.exports = (content, options = {}) => {
});

return `
${esmExport ? 'export default' : 'module.exports ='} {
export default {
functional: true,
render: ${renderFunction},
};
Expand Down

0 comments on commit 151c5d7

Please sign in to comment.