Ensure that @writefull dependencies are transpiled to browserslist targets (#29551)

GitOrigin-RevId: e8070679e79c16e81d8e14061cbb9c41781009a0
This commit is contained in:
Alf Eaton
2026-01-09 11:37:34 +00:00
committed by Copybot
parent 0a84cefc96
commit 5f20651607

View File

@@ -123,6 +123,13 @@ module.exports = {
'modules/writefull/frontend/js/integration'
),
use: [
{
loader: 'babel-loader',
options: {
cacheDirectory: true,
configFile: path.join(__dirname, './babel.config.json'),
},
},
{
loader: 'ts-loader',
options: {
@@ -142,7 +149,7 @@ module.exports = {
// Only compile application files and specific dependencies
// (other npm and vendored dependencies must be in ES5 already)
exclude: [
/node_modules\/(?!(react-dnd|chart\.js|@uppy|pdfjs-dist|react-resizable-panels)\/)/,
/node_modules\/(?!(react-dnd|chart\.js|@uppy|@writefull|pdfjs-dist|react-resizable-panels)\/)/,
vendorDir,
path.resolve(__dirname, 'modules/writefull/frontend/js/integration'),
],