vite-plugin-rebundle 1.2.13 → 1.2.16
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.
- package/dist/rebundle.js +3 -1
- 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: ';(async () => {' + (chunkBuildOptions.banner?.js ?? '') },
|
|
122
|
+
footer: { ...chunkBuildOptions.footer, js: (chunkBuildOptions.footer?.js ?? '') + '})();' },
|
|
121
123
|
outfile: chunkPath,
|
|
122
124
|
entryPoints: [chunkPath],
|
|
123
125
|
bundle: true,
|