Skip to content

Commit 39361dc

Browse files
authored
Merge pull request #220 from citizennet/AS-2082/upgrade-parcel-to-v2
AS-2082 Upgrade `parcel` to v2
2 parents 8b96956 + bd0d4cc commit 39361dc

File tree

6 files changed

+2187
-3723
lines changed

6 files changed

+2187
-3723
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
defaults: &defaults
44
working_directory: ~/ocelot
55
docker:
6-
- image: circleci/node:10.24-buster-browsers
6+
- image: circleci/node:16.13-buster-browsers
77
environment:
88
RTS_ARGS: +RTS -N2 -RTS
99

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ generated-docs
1212
*.tix
1313
.spago
1414
.purs-repl
15+
.parcel-cache
1516

1617

1718
# Allow the CSS file only; Circle CI will overwrite whatever you

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ test: $(BUILD_DIR)/test.out ## Build and run tests
107107

108108
.PHONY: ui-guide
109109
ui-guide: build-css $(OUTPUT_DIR)/Main/index.js $(NODE_MODULES) | $(PARCEL_DIR) ## Build the UI Guide using ParcelJS for hot reloading (experimental, may not work on all environments)
110-
npx parcel $(DIST_DIR)/parcel.html --out-dir $(PARCEL_DIR) --no-cache
110+
npx parcel serve $(DIST_DIR)/parcel.html --dist-dir $(PARCEL_DIR) --no-cache

dist/parcel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</head>
88

99
<body>
10-
<script src="main.js"></script>
10+
<script src="main.js" type="module"></script>
1111
</body>
1212

1313
</html>

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
},
1212
"devDependencies": {
1313
"browserify": "^16.5.1",
14-
"parcel": "1.12.4",
15-
"parcel-bundler": "1.12.3",
14+
"parcel": "2.2.1",
1615
"purescript": "0.14.4",
1716
"purescript-psa": "0.8.2",
1817
"spago": "0.20.3"
@@ -21,5 +20,8 @@
2120
"big-integer": "^1.6.31",
2221
"request": "^2.88.0",
2322
"yarn": "^1.16.0"
23+
},
24+
"alias": {
25+
"xhr2": false
2426
}
2527
}

0 commit comments

Comments
 (0)