File tree Expand file tree Collapse file tree 5 files changed +16
-7
lines changed Expand file tree Collapse file tree 5 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ node_modules
18
18
* .log
19
19
20
20
# Generated
21
- dce-output
22
21
dist
23
22
generated-docs
24
23
output
24
+ output-es
25
25
serve
Original file line number Diff line number Diff line change 1
- import { main } from "./output/Main" ;
2
-
3
- main ( ) ;
1
+ if ( process . env . NODE_ENV == "production" ) {
2
+ require ( "/output-es/Main" ) . main ( ) ;
3
+ } else {
4
+ require ( "/output/Main" ) . main ( ) ;
5
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " purescript-react-realworld" ,
3
- "version" : " 4.0.1 " ,
3
+ "version" : " 4.1.0 " ,
4
4
"description" : " A real-world application demonstrating PureScript and React" ,
5
5
"keywords" : [
6
6
" Purescript" ,
20
20
"license" : " MIT" ,
21
21
"scripts" : {
22
22
"build" : " spago build" ,
23
- "bundle" : " spago build && parcel build index.html --no-source-maps" ,
24
- "clean" : " rm -Rf .cache dist serve output dce- output node_modules .spago *.lock" ,
23
+ "bundle" : " spago -x spago.production.dhall build && parcel build index.html --no-source-maps" ,
24
+ "clean" : " rm -Rf .cache dist serve output output-es node_modules .spago *.lock" ,
25
25
"postinstall" : " spago install" ,
26
26
"serve" : " yarn build && yarn serve:parcel" ,
27
27
"serve:parcel" : " parcel serve --no-source-maps --dist-dir serve index.html" ,
31
31
"parcel" : " 2.0.0" ,
32
32
"purescript" : " ^0.15.4" ,
33
33
"purescript-psa" : " ^0.8.2" ,
34
+ "purs-backend-es" : " ^1.1.0" ,
34
35
"purs-tidy" : " ^0.9.2" ,
35
36
"spago" : " ^0.20.9"
36
37
},
Original file line number Diff line number Diff line change
1
+ ./ spago. dhall // { backend = " purs-backend-es build" }
Original file line number Diff line number Diff line change @@ -2304,6 +2304,11 @@ purescript@^0.15.4:
2304
2304
dependencies :
2305
2305
purescript-installer "^0.2.6"
2306
2306
2307
+ purs-backend-es@^1.1.0 :
2308
+ version "1.1.0"
2309
+ resolved "https://registry.yarnpkg.com/purs-backend-es/-/purs-backend-es-1.1.0.tgz#55c78280a8ae572792e5b0876a09b1c998dadb53"
2310
+ integrity sha512-AC7OLAAmGyslvNriOOE6BaEDoG3UKsT2Pw2P72R2DLhn7yiAsRNH60/1e+Huj29Vyn2ClWaY7TEQAu7AFclqGQ==
2311
+
2307
2312
purs-tidy@^0.9.2 :
2308
2313
version "0.9.2"
2309
2314
resolved "https://registry.yarnpkg.com/purs-tidy/-/purs-tidy-0.9.2.tgz#b67e4a18ee3125edb4562cd5e3244dafe747cfdd"
You can’t perform that action at this time.
0 commit comments