Editor-common heading icons broken

Editor-common heading icons broken by tsRewriteRelativeImportExtensions in published ESM**
Affected package:** @atlaskit/editor-common@112.18.9, file dist/esm/quick-insert/assets/index.js

Description: The importHeading() function wraps paths in _tsRewriteRelativeImportExtensions(), which is a TypeScript 5.7 --rewriteRelativeImportExtensions runtime helper. This is a no-op in compiled .js output, but prevents Webpack 5 from statically analyzing import() expressions, resulting in “Critical dependency” warnings and heading icons failing to load (not displayed). All other ~24 icons in the same file use plain string literals and work fine.

As workaround, I use :

A custom Webpack pre-loader that strips the no-op _tsRewriteRelativeImportExtensions() calls at build time:

// src/fixes/strip-ts-rewrite-loader.js

module.exports = function (source) {

return source.replace(/_tsRewriteRelativeImportExtensions\((“[^”]*")\)/g, ‘$1’);

};

// craco.config.js (or webpack.config.js)

webpackConfig.module.rules.push({

test: /editor-common[\\/]dist[\\/].*[\\/]quick-insert[\\/]assets[\\/]index\.js$/,

enforce: ‘pre’,

loader: path.resolve(__dirname, ‘src/fixes/strip-ts-rewrite-loader.js’),

});