Skip to content

Commit

Permalink
Undo obsolete hack for Closure Compiler issue with rrule sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg committed Jul 14, 2023
1 parent ba5a5db commit a880156
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions build-system/common/update-packages.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const checkDependencies = require('check-dependencies');
const del = require('del');
const fs = require('fs-extra');
const path = require('path');
const {cyan, red} = require('kleur/colors');
Expand Down Expand Up @@ -180,19 +179,6 @@ function patchShadowDom() {
writeIfUpdated(patchedName, file);
}

/**
* Deletes the map file for rrule, which breaks closure compiler.
* TODO(wg-infra): Remove this workaround after a fix is merged for
* https://github.com/google/closure-compiler/issues/3720.
*/
function removeRruleSourcemap() {
const rruleMapFile = 'node_modules/rrule/dist/es5/rrule.js.map';
if (fs.existsSync(rruleMapFile)) {
del.sync(rruleMapFile);
logLocalDev('Deleted', cyan(rruleMapFile));
}
}

/**
* Checks if all packages are current, and if not, runs `npm install`.
*/
Expand Down Expand Up @@ -227,7 +213,6 @@ function updatePackages() {
patchIntersectionObserver();
patchResizeObserver();
patchShadowDom();
removeRruleSourcemap();
if (isCiBuild()) {
runNpmChecks();
}
Expand Down

0 comments on commit a880156

Please sign in to comment.