Skip to content

Commit

Permalink
fix: Remove tz min into vendor tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmit committed May 11, 2020
1 parent 96825ab commit 6486929
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,10 @@ module.exports = {

if (options.includeTimezone) {
let timezonePath;
let timezoneMinPath;

switch (options.includeTimezone) {
case 'all':
timezonePath = 'builds/moment-timezone-with-data.js';
timezoneMinPath = 'builds/moment-timezone-with-data.min.js';
break;
case '2010-2020':
this.ui.writeLine(
Expand All @@ -167,11 +165,9 @@ module.exports = {
case '2012-2022':
case '2010-2020':
timezonePath = 'builds/moment-timezone-with-data-*.js';
timezoneMinPath = 'builds/moment-timezone-with-data-*.min.js';
break;
case 'none':
timezonePath = 'moment-timezone.js';
timezoneMinPath = 'builds/moment-timezone.min.js';
break;
default:
throw new Error(
Expand All @@ -189,13 +185,6 @@ module.exports = {
() => 'moment-timezone/tz.js'
)
);

trees.push(
rename(
funnel(timezoneNode, { include: [timezoneMinPath] }),
() => 'moment-timezone/tz.min.js'
)
);
}

return map(
Expand Down

0 comments on commit 6486929

Please sign in to comment.