Debian Patches

Status for node-svgr/8.1.0-2

Patch Description Author Forwarded Bugs Origin Last update
0001-Use-rollup-plugin-typescript.patch build with @rollup/plugin-typescript instead of rollup-plugin-esbuild rollup-plugin-esbuild is not in Debian. @rollup/plugin-typescript does
the same transpile-only job here; declaration/declarationMap are turned off
because the .d.ts files are produced by the dts() plugin below.

diff --git a/build/rollup.config.mjs b/build/rollup.config.mjs
index 4a528ee..5ab07c9 100644
not-needed vendor
0002-Replace-workspace-protocol-ranges.patch replace workspace:* dependencies with the published version numbers upstream rewrites these ranges on pnpm publish; the npm tarballs carry the
concrete versions, and dh-nodejs needs plain version ranges.

diff --git a/packages/babel-preset/package.json b/packages/babel-preset/package.json
index d42c18e..f64e808 100644
not-needed vendor
0003-Use-createConfigItemSync-for-Babel-8.patch use createConfigItemSync for the synchronous call sites Babel 8 turned createConfigItem into a callback-based function and added
createConfigItemSync for synchronous use; these call sites run at module
load time, so without this they throw on require().

diff --git a/packages/plugin-jsx/src/index.ts b/packages/plugin-jsx/src/index.ts
index d05faca..c5724b7 100644
not-needed vendor
0004-Port-the-test-suite-to-Babel-8.patch Make the test suite work with Babel 8 Babel 8 removed the `loose` option of @babel/preset-env and turned
`transform()` into a callback-only API, so the suite neither starts nor runs
against node-babel7. Alias the synchronous entry points, the same way
0003-Use-createConfigItemSync-for-Babel-8.patch does for the sources.
.
None of the files touched here are shipped; the build is unchanged.
not-needed vendor

All known versions for source package 'node-svgr'

Links