Skip to content

Commit

Permalink
Bump rollup to ^3.27.0 (#37890)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michał Dudak <michal@mui.com>
  • Loading branch information
renovate[bot] and michaldudak committed Aug 1, 2023
1 parent be80cd0 commit 9c8fe9d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
"react-test-renderer": "^18.2.0",
"remark": "^13.0.0",
"rimraf": "^5.0.1",
"rollup": "^2.79.1",
"rollup": "^3.27.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-globals": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"build:modern": "node ../../scripts/build.mjs modern",
"build:node": "node ../../scripts/build.mjs node",
"build:stable": "node ../../scripts/build.mjs stable",
"build:umd": "cross-env BABEL_ENV=stable rollup -c scripts/rollup.config.js",
"build:umd": "cross-env BABEL_ENV=stable rollup -c scripts/rollup.config.mjs",
"build:copy-files": "node ../../scripts/copyFiles.mjs",
"build:types": "node ../../scripts/buildTypes.mjs",
"prebuild": "rimraf build tsconfig.build.tsbuildinfo",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { promises as fs, existsSync } from 'fs';
import * as url from 'url';
import path from 'path';
import zlib from 'zlib';
import { promisify } from 'util';
Expand All @@ -9,6 +10,8 @@ import replace from '@rollup/plugin-replace';
import nodeGlobals from 'rollup-plugin-node-globals';
import { terser } from 'rollup-plugin-terser';

const currentDirectory = url.fileURLToPath(new URL('.', import.meta.url));

const gzip = promisify(zlib.gzip);

/**
Expand Down Expand Up @@ -77,7 +80,7 @@ function sizeSnapshot(options) {
function resolveNestedImport(packageFolder, importee) {
const folder = importee.split('/')[2];
const resolvedFilename = path.resolve(
__dirname,
currentDirectory,
`../../../packages/${packageFolder}/src/${folder}/index`,
);

Expand Down Expand Up @@ -124,7 +127,7 @@ const babelOptions = {
// We are using @babel/plugin-transform-runtime
runtimeHelpers: true,
extensions: ['.js', '.ts', '.tsx'],
configFile: path.resolve(__dirname, '../../../babel.config.js'),
configFile: path.resolve(currentDirectory, '../../../babel.config.js'),
};
const commonjsOptions = {
ignoreGlobal: true,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14513,10 +14513,10 @@ rollup-pluginutils@^2.3.1, rollup-pluginutils@^2.8.1:
dependencies:
estree-walker "^0.6.1"

rollup@^2.79.1:
version "2.79.1"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.79.1.tgz#bedee8faef7c9f93a2647ac0108748f497f081c7"
integrity sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==
rollup@^3.27.0:
version "3.27.0"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.27.0.tgz#15bd07e2e1cbfa9255bf6a3f04a432621c2f3550"
integrity sha512-aOltLCrYZ0FhJDm7fCqwTjIUEVjWjcydKBV/Zeid6Mn8BWgDCUBBWT5beM5ieForYNo/1ZHuGJdka26kvQ3Gzg==
optionalDependencies:
fsevents "~2.3.2"

Expand Down

0 comments on commit 9c8fe9d

Please sign in to comment.