v0.0.4
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