vite-plugin-rebundle 1.2.13 → 1.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/rebundle.js +3 -1
  2. package/package.json +1 -1
package/dist/rebundle.js CHANGED
@@ -115,9 +115,11 @@ export class Rebundle extends $utils.Unit {
115
115
  let result;
116
116
  try {
117
117
  result = await $esbuild.build({
118
- format: 'esm',
119
118
  sourcemap: Boolean(this.config.build.sourcemap),
119
+ format: 'esm',
120
120
  ...chunkBuildOptions,
121
+ banner: { ...chunkBuildOptions.banner, js: ';(() => {' + (chunkBuildOptions.banner?.js ?? '') },
122
+ footer: { ...chunkBuildOptions.footer, js: (chunkBuildOptions.footer?.js ?? '') + '})();' },
121
123
  outfile: chunkPath,
122
124
  entryPoints: [chunkPath],
123
125
  bundle: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-rebundle",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "imkost",