- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
26 lines
550 B
JavaScript
26 lines
550 B
JavaScript
const MARKER = "my-special-import";
|
|
module.exports = (config, outputOptions, omt) => {
|
|
config.plugins = [
|
|
omt(),
|
|
{
|
|
resolveId(id) {
|
|
if (id !== MARKER) {
|
|
return;
|
|
}
|
|
return id;
|
|
},
|
|
load(id) {
|
|
if (id !== MARKER) {
|
|
return;
|
|
}
|
|
const referenceId = this.emitFile({
|
|
type: "asset",
|
|
name: "my-asset.bin",
|
|
source: "assetcontent"
|
|
});
|
|
return `export default import.meta.ROLLUP_FILE_URL_${referenceId}`;
|
|
}
|
|
}
|
|
];
|
|
};
|