Skip to content

Commit

Permalink
fix: copy over assets in iife and umd builds
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Dec 25, 2024
1 parent 5fa0454 commit a40412e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/modules/Bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,15 @@ class Bundler {

await forEach(formatConfig.outputs || [], async ([env, minifyOption]) => {
process.env.NODE_ENV = env;
await this.buildFiles(buildFiles, formatConfig, {
format,
env,
minify: minifyOption === 'minified',
});
await Promise.all([
this.copyFiles(outFolder, copyFiles, format),
this.buildFiles(buildFiles, formatConfig, {
format,
env,
minify: minifyOption === 'minified',
}),
this.buildTypeDefinitionFiles(buildFiles, formatConfig, format),
]);
});
});
}
Expand Down

0 comments on commit a40412e

Please sign in to comment.