@@ -6,9 +6,7 @@ import extensions from "rollup-plugin-extensions";
6
6
import prettier from "rollup-plugin-prettier" ;
7
7
import replace from "@rollup/plugin-replace" ;
8
8
import typescript from "@rollup/plugin-typescript" ;
9
- // import nodeResolve from "@rollup/plugin-node-resolve";
10
9
import { terser } from "rollup-plugin-terser" ;
11
- // import typescript from "rollup-plugin-typescript2";
12
10
13
11
const PRETTY = ! ! process . env . PRETTY ;
14
12
const PACKAGE_DIR = path . join ( __dirname , "packages" ) ;
@@ -34,9 +32,9 @@ function getVersion(sourceDir) {
34
32
* @returns {RollupOptions[] }
35
33
*/
36
34
function router ( ) {
37
- let PACKAGE_NAME = "router" ;
38
- let SOURCE_DIR = `packages/${ PACKAGE_NAME } ` ;
39
- let OUTPUT_DIR = `${ SOURCE_DIR } /dist` ;
35
+ const PACKAGE_NAME = "router" ;
36
+ const SOURCE_DIR = `packages/${ PACKAGE_NAME } ` ;
37
+ const OUTPUT_DIR = `${ SOURCE_DIR } /dist` ;
40
38
let version = getVersion ( SOURCE_DIR ) ;
41
39
42
40
// JS modules for bundlers
@@ -220,9 +218,9 @@ function router() {
220
218
* @returns {RollupOptions[] }
221
219
*/
222
220
function reactRouter ( ) {
223
- let PACKAGE_NAME = "react-router" ;
224
- let SOURCE_DIR = `packages/${ PACKAGE_NAME } ` ;
225
- let OUTPUT_DIR = `${ SOURCE_DIR } /dist` ;
221
+ const PACKAGE_NAME = "react-router" ;
222
+ const SOURCE_DIR = `packages/${ PACKAGE_NAME } ` ;
223
+ const OUTPUT_DIR = `${ SOURCE_DIR } /dist` ;
226
224
227
225
let version = getVersion ( SOURCE_DIR ) ;
228
226
@@ -436,9 +434,9 @@ function reactRouter() {
436
434
* @returns {RollupOptions[] }
437
435
*/
438
436
function reactRouterDom ( ) {
439
- let PACKAGE_NAME = "react-router-dom" ;
440
- let SOURCE_DIR = `packages/${ PACKAGE_NAME } ` ;
441
- let OUTPUT_DIR = `${ SOURCE_DIR } /dist` ;
437
+ const PACKAGE_NAME = "react-router-dom" ;
438
+ const SOURCE_DIR = `packages/${ PACKAGE_NAME } ` ;
439
+ const OUTPUT_DIR = `${ SOURCE_DIR } /dist` ;
442
440
let version = getVersion ( SOURCE_DIR ) ;
443
441
444
442
// JS modules for bundlers
@@ -745,9 +743,9 @@ function reactRouterDom() {
745
743
* @returns {RollupOptions[] }
746
744
*/
747
745
function reactRouterDomV5Compat ( ) {
748
- let PACKAGE_NAME = "react-router-dom-v5-compat" ;
749
- let SOURCE_DIR = `packages/${ PACKAGE_NAME } ` ;
750
- let OUTPUT_DIR = `${ SOURCE_DIR } /dist` ;
746
+ const PACKAGE_NAME = "react-router-dom-v5-compat" ;
747
+ const SOURCE_DIR = `packages/${ PACKAGE_NAME } ` ;
748
+ const OUTPUT_DIR = `${ SOURCE_DIR } /dist` ;
751
749
752
750
let version = getVersion ( SOURCE_DIR ) ;
753
751
@@ -905,9 +903,9 @@ function reactRouterDomV5Compat() {
905
903
* @returns {RollupOptions[] }
906
904
*/
907
905
function reactRouterNative ( ) {
908
- let PACKAGE_NAME = "react-router-native" ;
909
- let SOURCE_DIR = `packages/${ PACKAGE_NAME } ` ;
910
- let OUTPUT_DIR = `${ SOURCE_DIR } /dist` ;
906
+ const PACKAGE_NAME = "react-router-native" ;
907
+ const SOURCE_DIR = `packages/${ PACKAGE_NAME } ` ;
908
+ const OUTPUT_DIR = `${ SOURCE_DIR } /dist` ;
911
909
912
910
let version = getVersion ( SOURCE_DIR ) ;
913
911
0 commit comments