Skip to content

Commit

Permalink
Fix relative path (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmadom authored Nov 13, 2024
1 parent a7091c6 commit 1e45691
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const path = require('path');

const entries = ['d3-chord/v3.0.1', 'd3/v7.9.0'];

module.exports = {
entry: {
'@gravity-ui/date-utils/v2.3.0': {
Expand All @@ -8,8 +10,10 @@ module.exports = {
'@gravity-ui/date-utils/v2.5.3': {
import: '@gravity-ui/date-utils.2.5.3',
},
'd3-chord/v3.0.1': './src/entries/d3-chord_v3.0.1.ts',
'd3/v7.9.0': './src/entries/d3_v7.9.0.ts',
...entries.reduce((acc, entry) => {
acc[entry] = path.resolve(__dirname, `src/entries/${entry.replace('/', '_')}.ts`);
return acc;
}, {}),
},
mode: 'production',
output: {
Expand Down

0 comments on commit 1e45691

Please sign in to comment.