File tree 7 files changed +57
-25
lines changed
7 files changed +57
-25
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ const commonjs = require("rollup-plugin-commonjs");
4
4
const nodeResolve = require ( "rollup-plugin-node-resolve" ) ;
5
5
const { sizeSnapshot } = require ( "rollup-plugin-size-snapshot" ) ;
6
6
const { uglify } = require ( "rollup-plugin-uglify" ) ;
7
-
7
+ const path = require ( "path" ) ;
8
8
const pkg = require ( "./package.json" ) ;
9
9
10
10
function isBareModuleId ( id ) {
11
- return ! id . startsWith ( "." ) && ! id . startsWith ( "/" ) ;
11
+ return (
12
+ ! id . startsWith ( "." ) && ! id . includes ( path . join ( process . cwd ( ) , "modules" ) )
13
+ ) ;
12
14
}
13
15
14
16
const cjs = [
Original file line number Diff line number Diff line change 1
1
{
2
2
"esm/react-router-dom.js" : {
3
- "bundled" : 8159 ,
3
+ "bundled" : 8167 ,
4
4
"minified" : 4903 ,
5
5
"gzipped" : 1641 ,
6
6
"treeshaked" : {
14
14
}
15
15
},
16
16
"umd/react-router-dom.js" : {
17
- "bundled" : 159106 ,
18
- "minified" : 56622 ,
19
- "gzipped" : 16367
17
+ "bundled" : 159166 ,
18
+ "minified" : 56640 ,
19
+ "gzipped" : 16373
20
20
},
21
21
"umd/react-router-dom.min.js" : {
22
- "bundled" : 95961 ,
23
- "minified" : 33642 ,
24
- "gzipped" : 9929
22
+ "bundled" : 96021 ,
23
+ "minified" : 33660 ,
24
+ "gzipped" : 9934
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ const commonjs = require("rollup-plugin-commonjs");
4
4
const nodeResolve = require ( "rollup-plugin-node-resolve" ) ;
5
5
const { sizeSnapshot } = require ( "rollup-plugin-size-snapshot" ) ;
6
6
const { uglify } = require ( "rollup-plugin-uglify" ) ;
7
-
7
+ const path = require ( "path" ) ;
8
8
const pkg = require ( "./package.json" ) ;
9
9
10
10
function isBareModuleId ( id ) {
11
- return ! id . startsWith ( "." ) && ! id . startsWith ( "/" ) ;
11
+ return (
12
+ ! id . startsWith ( "." ) && ! id . includes ( path . join ( process . cwd ( ) , "modules" ) )
13
+ ) ;
12
14
}
13
15
14
16
const cjs = [
Original file line number Diff line number Diff line change 1
1
{
2
2
"esm/react-router.js" : {
3
- "bundled" : 23435 ,
4
- "minified" : 13241 ,
5
- "gzipped" : 3679 ,
3
+ "bundled" : 23486 ,
4
+ "minified" : 13259 ,
5
+ "gzipped" : 3684 ,
6
6
"treeshaked" : {
7
7
"rollup" : {
8
- "code" : 2214 ,
8
+ "code" : 2232 ,
9
9
"import_statements" : 470
10
10
},
11
11
"webpack" : {
12
- "code" : 3577
12
+ "code" : 3595
13
13
}
14
14
}
15
15
},
16
16
"umd/react-router.js" : {
17
- "bundled" : 99032 ,
18
- "minified" : 35013 ,
19
- "gzipped" : 11222
17
+ "bundled" : 99085 ,
18
+ "minified" : 35031 ,
19
+ "gzipped" : 11229
20
20
},
21
21
"umd/react-router.min.js" : {
22
- "bundled" : 61635 ,
23
- "minified" : 21414 ,
24
- "gzipped" : 7600
22
+ "bundled" : 61688 ,
23
+ "minified" : 21432 ,
24
+ "gzipped" : 7606
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ const commonjs = require("rollup-plugin-commonjs");
4
4
const nodeResolve = require ( "rollup-plugin-node-resolve" ) ;
5
5
const { sizeSnapshot } = require ( "rollup-plugin-size-snapshot" ) ;
6
6
const { uglify } = require ( "rollup-plugin-uglify" ) ;
7
-
7
+ const path = require ( "path" ) ;
8
8
const pkg = require ( "./package.json" ) ;
9
9
10
10
function isBareModuleId ( id ) {
11
- return ! id . startsWith ( "." ) && ! id . startsWith ( "/" ) ;
11
+ return (
12
+ ! id . startsWith ( "." ) && ! id . includes ( path . join ( process . cwd ( ) , "modules" ) )
13
+ ) ;
12
14
}
13
15
14
16
const cjs = [
Original file line number Diff line number Diff line change 3
3
"name" : " react-router-website" ,
4
4
"version" : " 5.0.0" ,
5
5
"scripts" : {
6
- "build" : " NODE_ENV=production webpack -p" ,
6
+ "build" : " cross-env NODE_ENV=production webpack -p" ,
7
7
"start" : " webpack-dev-server --inline --host 0.0.0.0"
8
8
},
9
9
"dependencies" : {
37
37
"bundle-loader" : " ^0.5.5" ,
38
38
"cheerio" : " ^0.22.0" ,
39
39
"copy-webpack-plugin" : " ^4.0.1" ,
40
+ "cross-env" : " ^5.2.0" ,
40
41
"css-loader" : " ^0.28.7" ,
41
42
"eslint" : " ^4.19.1" ,
42
43
"eslint-plugin-import" : " ^2.12.0" ,
You can’t perform that action at this time.
0 commit comments