rollup 2.60.0 → 2.60.1

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/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.60.0
4
- Fri, 12 Nov 2021 05:12:41 GMT - commit 8d98341bf746d4baa57bbd730b1fa6449555cfca
3
+ Rollup.js v2.60.1
4
+ Mon, 22 Nov 2021 07:50:11 GMT - commit 649074e14131b490ff9dfe26e94632ff458c4970
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.60.0
4
- Fri, 12 Nov 2021 05:12:41 GMT - commit 8d98341bf746d4baa57bbd730b1fa6449555cfca
3
+ Rollup.js v2.60.1
4
+ Mon, 22 Nov 2021 07:50:11 GMT - commit 649074e14131b490ff9dfe26e94632ff458c4970
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.60.0
4
- Fri, 12 Nov 2021 05:12:41 GMT - commit 8d98341bf746d4baa57bbd730b1fa6449555cfca
3
+ Rollup.js v2.60.1
4
+ Mon, 22 Nov 2021 07:50:11 GMT - commit 649074e14131b490ff9dfe26e94632ff458c4970
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.60.0
4
- Fri, 12 Nov 2021 05:12:41 GMT - commit 8d98341bf746d4baa57bbd730b1fa6449555cfca
3
+ Rollup.js v2.60.1
4
+ Mon, 22 Nov 2021 07:50:11 GMT - commit 649074e14131b490ff9dfe26e94632ff458c4970
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.60.0
4
- Fri, 12 Nov 2021 05:12:41 GMT - commit 8d98341bf746d4baa57bbd730b1fa6449555cfca
3
+ Rollup.js v2.60.1
4
+ Mon, 22 Nov 2021 07:50:11 GMT - commit 649074e14131b490ff9dfe26e94632ff458c4970
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -26,7 +26,7 @@ function _interopNamespaceDefault(e) {
26
26
  return n;
27
27
  }
28
28
 
29
- var version$1 = "2.60.0";
29
+ var version$1 = "2.60.1";
30
30
 
31
31
  function ensureArray$1(items) {
32
32
  if (Array.isArray(items)) {
@@ -14585,13 +14585,14 @@ class Chunk {
14585
14585
  const id = this.orderedModules[0].id;
14586
14586
  const sanitizedId = this.outputOptions.sanitizeFileName(id);
14587
14587
  let path;
14588
+ const patternOpt = unsetOptions.has('entryFileNames')
14589
+ ? '[name][assetExtname].js'
14590
+ : options.entryFileNames;
14591
+ const pattern = typeof patternOpt === 'function' ? patternOpt(this.getChunkInfo()) : patternOpt;
14588
14592
  if (isAbsolute(id)) {
14589
- const extension = path$2.extname(id);
14590
- const pattern = unsetOptions.has('entryFileNames')
14591
- ? '[name][assetExtname].js'
14592
- : options.entryFileNames;
14593
14593
  const currentDir = path$2.dirname(sanitizedId);
14594
- const fileName = renderNamePattern(typeof pattern === 'function' ? pattern(this.getChunkInfo()) : pattern, 'output.entryFileNames', {
14594
+ const extension = path$2.extname(id);
14595
+ const fileName = renderNamePattern(pattern, 'output.entryFileNames', {
14595
14596
  assetExtname: () => (NON_ASSET_EXTENSIONS.includes(extension) ? '' : extension),
14596
14597
  ext: () => extension.substr(1),
14597
14598
  extname: () => extension,
@@ -14608,7 +14609,15 @@ class Chunk {
14608
14609
  }
14609
14610
  }
14610
14611
  else {
14611
- path = `_virtual/${path$2.basename(sanitizedId)}`;
14612
+ const extension = path$2.extname(sanitizedId);
14613
+ const fileName = renderNamePattern(pattern, 'output.entryFileNames', {
14614
+ assetExtname: () => (NON_ASSET_EXTENSIONS.includes(extension) ? '' : extension),
14615
+ ext: () => extension.substr(1),
14616
+ extname: () => extension,
14617
+ format: () => options.format,
14618
+ name: () => getAliasName(sanitizedId)
14619
+ });
14620
+ path = `_virtual/${fileName}`;
14612
14621
  }
14613
14622
  return makeUnique(normalize(path), existingNames);
14614
14623
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.60.0
4
- Fri, 12 Nov 2021 05:12:41 GMT - commit 8d98341bf746d4baa57bbd730b1fa6449555cfca
3
+ Rollup.js v2.60.1
4
+ Mon, 22 Nov 2021 07:50:11 GMT - commit 649074e14131b490ff9dfe26e94632ff458c4970
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.60.0
4
- Fri, 12 Nov 2021 05:12:41 GMT - commit 8d98341bf746d4baa57bbd730b1fa6449555cfca
3
+ Rollup.js v2.60.1
4
+ Mon, 22 Nov 2021 07:50:11 GMT - commit 649074e14131b490ff9dfe26e94632ff458c4970
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "2.60.0",
3
+ "version": "2.60.1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",