Files
actual/packages/loot-core/webpack/webpack.api.config.js
DJ Mountney f604fdaf36 Add crdt to the API package to fix types (#2738)
* Add crdt to the API package to fix types

- This way we get the crdt types supported

* Add release note

* Cleanup yarn.lock merge
2024-05-17 17:07:24 -07:00

28 lines
541 B
JavaScript

const path = require('path');
const config = require('./webpack.desktop.config');
config.resolve.extensions = [
'.api.js',
'.api.ts',
'.api.tsx',
'.electron.js',
'.electron.ts',
'.electron.tsx',
'.js',
'.ts',
'.tsx',
'.json',
];
config.resolve.fallback = {};
config.externals.push('@actual-app/crdt');
config.output.filename = 'bundle.api.js';
config.output.sourceMapFilename = 'bundle.api.js.map';
config.output.path = path.join(
path.dirname(path.dirname(__dirname)),
'api',
'app',
);
module.exports = config;