@jsenv/plugin-bundling 1.1.2 → 1.2.0
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/package.json
CHANGED
|
@@ -227,6 +227,8 @@ const rollupPluginJsenv = ({
|
|
|
227
227
|
},
|
|
228
228
|
outputOptions: (outputOptions) => {
|
|
229
229
|
// const sourcemapFile = buildDirectoryUrl
|
|
230
|
+
const { manualChunks } = outputOptions
|
|
231
|
+
|
|
230
232
|
Object.assign(outputOptions, {
|
|
231
233
|
format,
|
|
232
234
|
dir: fileUrlConverter.asFilePath(buildDirectoryUrl),
|
|
@@ -258,6 +260,12 @@ const rollupPluginJsenv = ({
|
|
|
258
260
|
return insideJs ? `${assetsDirectory}js/${name}` : `${name}`
|
|
259
261
|
},
|
|
260
262
|
manualChunks: (id) => {
|
|
263
|
+
if (manualChunks) {
|
|
264
|
+
const chunkId = manualChunks(id)
|
|
265
|
+
if (chunkId) {
|
|
266
|
+
return chunkId
|
|
267
|
+
}
|
|
268
|
+
}
|
|
261
269
|
if (babelHelpersChunk) {
|
|
262
270
|
const fileUrl = fileUrlConverter.asFileUrl(id)
|
|
263
271
|
if (
|