Skip to content

Commit

Permalink
Define exports
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt committed Dec 6, 2022
1 parent 66de2c1 commit a48294f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,10 @@ module.exports = [
process: function (resourcePath, source) {
let localeCode = resourcePath.match(/i18n[\/\\]locales[\/\\]([a-zA-Z_]+)\.ts$/)[1];
source = `\
var exports = __webpack_exports__;
${source}
import cronstrue from \"cronstrue\";
cronstrue.locales["${localeCode}"] = new ${localeCode}();
const toString = cronstrue.toString;
export default cronstrue;
export { toString };
`;
return source;
},
Expand Down

0 comments on commit a48294f

Please sign in to comment.