Skip to content

Commit

Permalink
Bump rollup from 2.8.0 to 2.79.2 (#1854)
Browse files Browse the repository at this point in the history
* Bump rollup from 2.8.0 to 2.79.2

Bumps [rollup](https://github.com/rollup/rollup) from 2.8.0 to 2.79.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](rollup/rollup@v2.8.0...v2.79.2)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update rollup.js to use the "externals" variable
as a function instead of as an array

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: George McGowan <[email protected]>
  • Loading branch information
dependabot[bot] and GJMcGowan authored Nov 5, 2024
1 parent 031fb9b commit 0dff7a8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"readline-sync": "^1.4.9",
"request": "^2.88.0",
"rimraf": "^2.6.2",
"rollup": "^2.7.3",
"rollup": "^2.79.2",
"rollup-plugin-dts": "^1.4.0",
"semver": "^7.5.2",
"source-map-support": "^0.5.21",
Expand Down
7 changes: 3 additions & 4 deletions packages/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,17 @@ const checkImports = imports => {
const allowedImports = [...imports].map(pattern => convertToRegex(pattern));

// We're going to read these from the arguments.
let externals = [];
let externals = () => false;
let allowNodeBuiltins = process.env.ALLOW_NODE_BUILTINS;

return {
buildStart(options) {
externals = options.external || [];
externals = options.external || (() => false);
},
resolveId(source) {
// Either this is an internal import, or explicitly listed in externals or we fail.
if (
allowedImports.some(pattern => pattern.test(source)) ||
externals.some(external => source === external || source.startsWith(`${external}/`)) ||
allowedImports.some(pattern => pattern.test(source)) || externals(source) || externals(source.split("/")[0]) ||
(allowNodeBuiltins && knownNodeBuiltins.some(pattern => pattern.test(source)))
) {
return null;
Expand Down
17 changes: 6 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2209,11 +2209,6 @@ fsevents@^1.2.7:
bindings "^1.5.0"
nan "^2.12.1"

fsevents@~2.1.2:
version "2.1.3"
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e"
integrity "sha1-+3OHA66NL5/pAMM4Nt3r7ouX8j4= sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ=="

fsevents@~2.3.2:
version "2.3.2"
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
Expand Down Expand Up @@ -4302,12 +4297,12 @@ rollup-plugin-dts@^1.4.0:
optionalDependencies:
"@babel/code-frame" "^7.8.3"

rollup@^2.7.3:
version "2.8.0"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.8.0.tgz#a1d63fa8331f5c362f025a7fee78b86d4ada5cef"
integrity "sha1-odY/qDMfXDYvAlp/7ni4bUraXO8= sha512-hyjpreMA0BTNrO68o4wCtcktwYTK8o1UtauOqsPniwDGzN2PvNaKmwa/RHmjNHJMrt6ItY2C7XjpT7TDf6WmJw=="
rollup@^2.79.2:
version "2.79.2"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.79.2.tgz#f150e4a5db4b121a21a747d762f701e5e9f49090"
integrity sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==
optionalDependencies:
fsevents "~2.1.2"
fsevents "~2.3.2"

run-queue@^1.0.0, run-queue@^1.0.3:
version "1.0.3"
Expand Down Expand Up @@ -5498,4 +5493,4 @@ yazl@^2.2.2:
resolved "https://registry.yarnpkg.com/yazl/-/yazl-2.5.1.tgz#a3d65d3dd659a5b0937850e8609f22fffa2b5c35"
integrity "sha1-o9ZdPdZZpbCTeFDoYJ8i//orXDU= sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw=="
dependencies:
buffer-crc32 "~0.2.3"
buffer-crc32 "~0.2.3"

0 comments on commit 0dff7a8

Please sign in to comment.