Modular 2.3.0

modular rename

The modular rename command is available, to rename a package and all its references in the code.

Support for yarn v3 Support for yarn v3 workspaces

modular now supports Yarn v3 Yarn supports limited features of Yarn v3 (such as v3 workspaces)

Dependency manifest

A dependency manifest (package.json) is generated in the dist directory after building. It includes all the dependencies imported in the (non-test) package code, including hoisted dependencies.

Merged Changes

  • #954 Bump shell-quote from 1.7.2 to 1.7.3

  • #1112 Support yarn v3

  • #1150 Replace babel with esbuild for package compilation

  • #1163 Add “modular rename” command, which re-writes the name of a package in its package.json and its usages in the other packages.

  • #1171 Bump esbuild-loader from 2.16.0 to 2.17.0

  • #1173 Bump @svgr/core from 6.1.1 to 6.1.2

  • #1176 Bump postcss from 8.4.4 to 8.4.5

  • #1200 Bump babel-preset-react-app from 10.0.0 to 10.0.1

  • #1207 Bump express from 4.17.1 to 4.17.2

  • #1252 Bump resolve from 1.20.0 to 1.21.0

  • #1260 Bump rollup from 2.60.2 to 2.63.0

  • #1262 Bump @rollup/plugin-node-resolve from 13.0.6 to 13.1.3

  • #1271 Bump esbuild from 0.14.2 to 0.14.11

  • #1278 Bump dotenv from 10.0.0 to 11.0.0

  • #1282 Bump browserslist from 4.18.1 to 4.19.1.

  • #1282 Bump postcss-preset-env from 7.0.1 to 7.2.3.

  • #1283 Upgrade @babel scope packages in modular.

  • #1285 Generate dependency manifest (package.json) for apps. This includes all the dependencies, either installed via the package’s package.json or hoisted to the root’s package.json.

  • #1310 Bump @babel/preset-env from 7.16.8 to 7.16.10

  • #1346 Bump postcss from 8.4.5 to 8.4.6

  • #1362 Bump dotenv from 14.2.0 to 16.0.0

  • #1365 Bump postcss-preset-env from 7.2.3 to 7.3.1

  • #1378 Bump rollup from 2.63.0 to 2.67.1

  • #1394 Bump rollup from 2.67.1 to 2.67.2

  • #1409 Fix reload on code change when serving an esbuild app or view

  • #1410 Bump esbuild from 0.14.21 to 0.14.22

  • #1413 Bump express from 4.17.2 to 4.17.3

  • #1433 Fix: package builds respect –private option

  • #1447 Removed initial git commit of create-modular-react-app and upgraded node versions in modular-scripts

  • #1467 Bump postcss from 8.4.7 to 8.4.8

  • #1407 Bump postcss-preset-env from 7.3.1 to 7.4.0

  • #1409 Fix react overlay to work with esbuild and not kill the server

  • #1409 Stop esbuild dev server from hanging when it’s killed

  • #1435 Bump postcss from 8.4.6 to 8.4.7

    • #1503 Relax our dependency discovery criteria to include dev dependencies and just warn when a dependency is not found.

Patch Versions

Patch versions of this release do not have a dedicated summary. For details of patch releases, please visit the GitHub releases page.