rollup 2.51.0 → 2.51.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/es/rollup.js CHANGED
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.51.0
4
- Sun, 06 Jun 2021 11:27:34 GMT - commit 592b9fed918ccc99d48ece917a70015ac1898e52
3
+ Rollup.js v2.51.1
4
+ Tue, 08 Jun 2021 05:41:03 GMT - commit 76dedd65e6059f60964684ac7c3cfb89ce5c5523
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
9
9
  Released under the MIT License.
10
10
  */
11
- export { version as VERSION, rollup, watch } from './shared/rollup.js';
11
+ export { version as VERSION, defineConfig, rollup, watch } from './shared/rollup.js';
12
12
  import 'path';
13
13
  import 'crypto';
14
14
  import 'fs';
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.51.0
4
- Sun, 06 Jun 2021 11:27:34 GMT - commit 592b9fed918ccc99d48ece917a70015ac1898e52
3
+ Rollup.js v2.51.1
4
+ Tue, 08 Jun 2021 05:41:03 GMT - commit 76dedd65e6059f60964684ac7c3cfb89ce5c5523
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -14,7 +14,7 @@ import * as fs from 'fs';
14
14
  import { lstatSync, realpathSync, readdirSync } from 'fs';
15
15
  import { EventEmitter } from 'events';
16
16
 
17
- var version$1 = "2.51.0";
17
+ var version$1 = "2.51.1";
18
18
 
19
19
  var charToInteger = {};
20
20
  var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
@@ -20784,6 +20784,14 @@ function writeOutputFile(outputFile, outputOptions) {
20784
20784
  }
20785
20785
  return Promise.all([writeFile(fileName, source), writeSourceMapPromise]);
20786
20786
  }
20787
+ /**
20788
+ * Auxiliary function for defining rollup configuration
20789
+ * Mainly to facilitate IDE code prompts, after all, export default does not prompt, even if you add @type annotations, it is not accurate
20790
+ * @param options
20791
+ */
20792
+ function defineConfig(options) {
20793
+ return options;
20794
+ }
20787
20795
 
20788
20796
  let fsEvents;
20789
20797
  let fsEventsImportError;
@@ -20831,4 +20839,4 @@ function watch(configs) {
20831
20839
  return emitter;
20832
20840
  }
20833
20841
 
20834
- export { defaultOnWarn, ensureArray, fseventsImporter, rollup, rollupInternal, version$1 as version, warnUnknownOptions, watch };
20842
+ export { defaultOnWarn, defineConfig, ensureArray, fseventsImporter, rollup, rollupInternal, version$1 as version, warnUnknownOptions, watch };
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.51.0
4
- Sun, 06 Jun 2021 11:27:34 GMT - commit 592b9fed918ccc99d48ece917a70015ac1898e52
3
+ Rollup.js v2.51.1
4
+ Tue, 08 Jun 2021 05:41:03 GMT - commit 76dedd65e6059f60964684ac7c3cfb89ce5c5523
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.51.0
4
- Sun, 06 Jun 2021 11:27:34 GMT - commit 592b9fed918ccc99d48ece917a70015ac1898e52
3
+ Rollup.js v2.51.1
4
+ Tue, 08 Jun 2021 05:41:03 GMT - commit 76dedd65e6059f60964684ac7c3cfb89ce5c5523
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup