Skip to content

Commit

Permalink
fix(build): configure rollup to use output.dir for dynamic imports
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila committed Dec 17, 2024
1 parent 884c714 commit e0506eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/data-provider/server-rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ const entryPath = path.resolve(rootPath, 'api/server/index.js');

console.log('entryPath', entryPath);

// Define your custom aliases here
// Define custom aliases here
const customAliases = {
entries: [{ find: '~', replacement: rootServerPath }],
};

export default {
input: entryPath,
output: {
file: 'test_bundle/bundle.js',
dir: 'test_bundle',
format: 'cjs',
},
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp/server-rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const entryPath = path.resolve(rootPath, 'api/server/index.js');

console.log('entryPath', entryPath);

// Define your custom aliases here
// Define custom aliases here
const customAliases = {
entries: [{ find: '~', replacement: rootServerPath }],
};
Expand Down

0 comments on commit e0506eb

Please sign in to comment.