|
|
@@ -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'),
|
|
|
],
|