@@ -748,8 +748,6 @@ function reactRouterDomV5Compat() {
748
748
let PACKAGE_NAME = "react-router-dom-v5-compat" ;
749
749
let SOURCE_DIR = `packages/${ PACKAGE_NAME } ` ;
750
750
let OUTPUT_DIR = `${ SOURCE_DIR } /dist` ;
751
- let ROUTER_DOM_SOURCE = "packages/react-router-dom/(index|dom).ts*" ;
752
- let ROUTER_DOM_COPY_DEST = `${ SOURCE_DIR } /react-router-dom` ;
753
751
754
752
let version = getVersion ( SOURCE_DIR ) ;
755
753
@@ -772,10 +770,6 @@ function reactRouterDomV5Compat() {
772
770
"react-router-dom" ,
773
771
] ,
774
772
plugins : [
775
- copy ( {
776
- targets : [ { src : ROUTER_DOM_SOURCE , dest : ROUTER_DOM_COPY_DEST } ] ,
777
- hook : "buildStart" ,
778
- } ) ,
779
773
extensions ( { extensions : [ ".tsx" , ".ts" ] } ) ,
780
774
babel ( {
781
775
babelHelpers : "bundled" ,
@@ -972,15 +966,15 @@ function reactRouterNative() {
972
966
973
967
/**
974
968
* @param {RollupInputOptions[] } options
975
- * @return {Promise< RollupOptions[]> }
969
+ * @return {RollupOptions[] }
976
970
*/
977
- export default async function rollup ( options ) {
971
+ export default function rollup ( options ) {
978
972
let builds = [
979
973
...router ( options ) ,
980
974
...reactRouter ( options ) ,
981
975
...reactRouterDom ( options ) ,
982
- ...reactRouterDomV5Compat ( options ) ,
983
976
...reactRouterNative ( options ) ,
977
+ ...reactRouterDomV5Compat ( options ) ,
984
978
] ;
985
979
return builds ;
986
980
}
0 commit comments