Skip to content

Commit

Permalink
fix: dynamically require issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hendurhance committed Apr 14, 2024
1 parent b27178d commit 455f3ce
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 14 deletions.
137 changes: 124 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@
},
"files": [
"dist/**/*"
]
],
"dependencies": {
"@rollup/plugin-commonjs": "^25.0.7"
}
}
12 changes: 12 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import commonjs from '@rollup/plugin-commonjs';

export default {
// Other Rollup config options...
plugins: [
commonjs({
dynamicRequireTargets: [
'src/data/countries/*.json',
]
})
]
};

0 comments on commit 455f3ce

Please sign in to comment.