mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Ensure that @writefull dependencies are transpiled to browserslist targets (#29551)
GitOrigin-RevId: e8070679e79c16e81d8e14061cbb9c41781009a0
This commit is contained in:
@@ -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'),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user