Skip to content

Commit

Permalink
Add banner for single-file ESM bundles + fixing type error
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfooman committed Feb 27, 2024
1 parent 53d2ce4 commit 90c91fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/rollup-build-target.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function buildTarget(buildType, moduleFormat, input = 'src/index.js', buildDir =
};
/** @type {OutputOptions} */
const outputOptions = {
banner: moduleFormat === 'es5' && getBanner(banner[buildType]),
banner: (moduleFormat === 'es5' || shouldBundle) ? getBanner(banner[buildType]) : undefined,
plugins: outputPlugins[buildType || outputPlugins.release],
format: outputFormat[moduleFormat],
indent: '\t',
Expand Down

0 comments on commit 90c91fb

Please sign in to comment.