Skip to content

Commit

Permalink
chore: update rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
igordanchenko committed Jan 16, 2022
1 parent 866dfe3 commit bab029b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const formats = [
{ format: "cjs", file: `${dist}/${cjsProduction}`, minify: true },
];

const cjsEntry = `"use strict"\n\nmodule.exports = require(process.env.NODE_ENV === "production" ?\n\t"./${cjsProduction}" :\n\t"./${cjsDevelopment}")`;
const cjsEntry = `'use strict'\n\nif (process.env.NODE_ENV === 'production') {\n\tmodule.exports = require('./${cjsProduction}');\n} else {\n\tmodule.exports = require('./${cjsDevelopment}');\n}\n`;

// noinspection JSCheckFunctionSignatures
export default formats
Expand Down

0 comments on commit bab029b

Please sign in to comment.