[web] Add AI workbench to alpha users (#29417)

Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>
GitOrigin-RevId: 79bb329932b1e6fcc88f648bca9cc4bee215cd41
This commit is contained in:
Mathias Jakobsen
2025-11-10 12:21:32 +00:00
committed by Copybot
parent c84cfc815a
commit 8024fe2c58
49 changed files with 8446 additions and 127 deletions

View File

@@ -10,6 +10,7 @@ const {
const PackageVersions = require('./app/src/infrastructure/PackageVersions.js')
const invalidateBabelCacheIfNeeded = require('./frontend/macros/invalidate-babel-cache-if-needed')
const { dirname } = require('node:path')
// Make sure that babel-macros are re-evaluated after changing the modules config
invalidateBabelCacheIfNeeded()
@@ -260,6 +261,26 @@ module.exports = {
},
],
},
{
// CSS from AI module
include: dirname(require.resolve('@overleaf/ai')),
use: [
{
loader: 'css-loader',
options: {
exportType: 'css-style-sheet',
},
},
{
loader: 'postcss-loader',
options: {
postcssOptions: {
config: require.resolve('@overleaf/ai/postcss.config.js'),
},
},
},
],
},
{
// Standard CSS processing (extracted into separate file)
use: [MiniCssExtractPlugin.loader, 'css-loader'],
@@ -309,6 +330,7 @@ module.exports = {
alias: {
// custom prefixes for import paths
'@': path.resolve(__dirname, './frontend/js/'),
'@modules': path.resolve(__dirname, './modules/'),
'@ol-types': path.resolve(__dirname, './types/'),
'@wf': path.resolve(
__dirname,