Skip to content

Commit

Permalink
nit: declare untouched variable straight as const
Browse files Browse the repository at this point in the history
  • Loading branch information
phndiaye committed Feb 25, 2023
1 parent 6813c5f commit c603081
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/addon-dev/src/rollup-public-reexports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ export default function publicAssets(opts: { exclude: string[] }): Plugin {
name: 'public-assets-bundler',
generateBundle() {
let pkg = readJsonSync('package.json');
let filenames;

filenames = walkSync('public', {
const filenames = walkSync('public', {
directories: false,
ignore: opts.exclude || [],
});

const publicAssets: Record<string, string> = filenames.reduce(
(acc: Record<string, string>, v): Record<string, string> => {
acc['./public/' + v] = ['/', pkg.name, '/', v].join('');
Expand Down

0 comments on commit c603081

Please sign in to comment.