Skip to content

Commit

Permalink
[Build]: disable esm cache (#7322)
Browse files Browse the repository at this point in the history
Avoid issues found in #7221 and others
  • Loading branch information
snewcomer authored Sep 12, 2020
1 parent 2c6d537 commit 61378f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/private-build-infra/src/deprecations.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const requireEsm = require('esm')(module);
const requireEsm = require('esm')(module, { cache: false });
const semver = require('semver');

function deprecationIsResolved(deprecatedSince, compatVersion) {
Expand Down
2 changes: 1 addition & 1 deletion packages/private-build-infra/src/features.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const requireEsm = require('esm')(module);
const requireEsm = require('esm')(module, { cache: false });

const version = require('../package.json').version;

Expand Down
2 changes: 1 addition & 1 deletion packages/private-build-infra/src/packages.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const requireEsm = require('esm')(module);
const requireEsm = require('esm')(module, { cache: false });

function detectPackage(dep, packageName, seen) {
let isFirst = !seen;
Expand Down

0 comments on commit 61378f9

Please sign in to comment.