Skip to content

Releases: markerikson/react-prod-sourcemaps

v0.3.1

13 Sep 18:38
Compare
Choose a tag to compare

This release adds sourcemaps for the React 18.3.1 prod artifacts. (I'm skipping React 18.3.0 given that 18.3.1 came out immediately after.)

Full Changelog: v0.2.2...v0.3.1

v0.2.2

27 Aug 15:19
Compare
Choose a tag to compare

This release adds a sourcemap artifact for react-jsx-runtime.production.min.js for React 18.2. I haven't built that for React 18.1 or 17.0.2 yet, but could if needed.

v0.2.1

27 Aug 15:19
Compare
Choose a tag to compare

This release adds new options for verbose logging, and to optionally throw an error if no matching React version is found.

What's Changed

  • Don't always throw errors, and try to log found versions by @markerikson in #15

Full Changelog: v0.2.0...v0.2.1

v0.2.0

27 Sep 15:53
Compare
Choose a tag to compare

This release updates the logic to handle replacing sourcemaps for multiple React artifacts in one app sourcemap (such as both react and react-dom), and adds sourcemaps for react and react-dom.profiling for versions 17.0.2, 18.1, and 18.2.

What's Changed

Full Changelog: 0.1.0...v0.2.0

v0.1.0

18 Sep 16:53
Compare
Choose a tag to compare

This release updates the build config to fix ESM/CJS package publishing issues.

What's Changed

  • Update import path in README by @jasikpark in #8
  • fix(module): output cjs and esm compat builds by @JonasBa in #10

Full Changelog: 0.0.5...0.1.0

v0.0.5

13 Sep 14:09
Compare
Choose a tag to compare

This release adds tests for the build tool plugins, adds a new CLI option to preserve the original sourcemaps, and adds a new "strict" option to the build tool plugins to error if no sourcemaps were updated.

What's Changed

  • test(unplugin): add build plugin tests by @JonasBa in #5
  • feat(plugin): add preserve sourcemap option by @JonasBa in #6
  • feat(plugin): add strict mode and readme by @JonasBa in #7

Full Changelog: 0.0.4...0.0.5

v0.0.4

08 Sep 00:27
Compare
Choose a tag to compare

This release adds a set of build tool plugins for Webpack, Vite, and other tools (based on Unplugin), adds an option for verbose logging, improves checks for which React file is replaced, and adds a sourcemap asset for the latest experimental build of React ( 20230907 ).

(Includes changes from both 0.0.3 and 0.0.4)

Changelog

Build Tool Plugins

We've wrapped up the sourcemap replacement logic and generated a set of build tool plugins using https://github.com/unjs/unplugin .

The exports are:

import {
  ViteReactSourcemapsPlugin, 
  RollupReactSourcemapsPlugin,
  WebpackReactSourcemapsPlugin, 
  RspackReactSourcemapsPlugin
  EsbuildReactSourcemapsPlugin
} from "@acemarke/react-prod-sourcemaps";

As a rough example of usage, see the changes in this PR to add the Webpack plugin to Replay.io's Next config:

config.plugins.push(WebpackReactSourcemapsPlugin({ debug: false }));

See the Unplugin docs for examples of where and how to add plugins to each build tool:

What's Changed

  • feat(plugin): add build plugin via unplugin by @JonasBa in #4
  • 1698bd4: Handle possibly missing options
  • fa7355f : Make prod filename check more specific

Full Changelog: 0.0.2...0.0.4

v0.0.2

29 Aug 14:54
Compare
Choose a tag to compare

This release adds the sourcemap for ReactDOM 17.0.2, and fixes the "main" field to (hopefully) actually point to the correct entry point if you want to import the rewriting logic.

Full Changelog: 0.0.1...0.0.2

v0.0.1

29 Aug 14:54
Compare
Choose a tag to compare

Initial Release!

This first release includes sourcemaps for ReactDOM 18.2.0 and 18.1.0, and a CLI tool that will update a single input sourcemap file to use the original contents of ReactDOM if it detects a matching version by content hash:

yarn add @acemarke/react-prod-sourcemaps
./node_modules/.bin/react-prod-sourcemaps --inputFile path/to/your/appBuild/sourcemap.js.map
# Output file will currently be written to sourcemap.remapped.js.map