File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,23 @@ import commonjs from "rollup-plugin-commonjs";
33import replace from "rollup-plugin-replace" ;
44
55export default {
6- input : "src/index.js" ,
7- output : {
8- file : "../reactpy_router/bundle.js" ,
9- format : "esm" ,
10- } ,
11- plugins : [
12- resolve ( ) ,
13- commonjs ( ) ,
14- replace ( {
15- "process.env.NODE_ENV" : JSON . stringify ( "production" ) ,
16- } ) ,
17- ] ,
18- onwarn : function ( warning ) {
19- if ( warning . code === "THIS_IS_UNDEFINED" ) {
20- // skip warning where `this` is undefined at the top level of a module
21- return ;
22- }
23- console . warn ( warning . message ) ;
24- } ,
6+ input : "src/index.js" ,
7+ output : {
8+ file : "../reactpy_router/static /bundle.js" ,
9+ format : "esm" ,
10+ } ,
11+ plugins : [
12+ resolve ( ) ,
13+ commonjs ( ) ,
14+ replace ( {
15+ "process.env.NODE_ENV" : JSON . stringify ( "production" ) ,
16+ } ) ,
17+ ] ,
18+ onwarn : function ( warning ) {
19+ if ( warning . code === "THIS_IS_UNDEFINED" ) {
20+ // skip warning where `this` is undefined at the top level of a module
21+ return ;
22+ }
23+ console . warn ( warning . message ) ;
24+ } ,
2525} ;
You can’t perform that action at this time.
0 commit comments