Skip to content

Commit cbe154c

Browse files
authored
chore: CHARTS-11006 Update examples to use parcel v2 package (#105)
* chore: Update chart examples to use parcel v2 package * chore: Ignore new parcel cache directory * chore: Update dashboard examples to use parcel v2 package * chore: Update chart examples to use parcel v2.13.3 package * chore: Update dashboard examples to use parcel v2.13.3 package
1 parent 0daec5d commit cbe154c

File tree

44 files changed

+136937
-80501
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+136937
-80501
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ dist
1212
*.iml
1313
.nvmrc
1414
.cache
15+
.parcel-cache

examples/charts/authenticated-custom-jwt/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ <h1>Secure Chart Viewer</h1>
3333
<div id="chart"></div>
3434
</div>
3535
</main>
36-
<script src="src/index.js"></script>
36+
<script type="module" src="src/index.js"></script>
3737
</body>
3838
</html>

examples/charts/authenticated-custom-jwt/package-lock.json

Lines changed: 9699 additions & 4516 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/charts/authenticated-custom-jwt/package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "mongodb-charts-embedded-sdk-authenticated-demo",
33
"version": "1.0.0",
44
"description": "",
5-
"main": "index.html",
65
"scripts": {
76
"start": "node app.js & parcel index.html --open",
87
"build": "parcel build index.html"
@@ -12,13 +11,18 @@
1211
"cors": "^2.8.5",
1312
"express": "^4.16.3",
1413
"jsonwebtoken": "^8.3.0",
15-
"parcel": "^1.12.4",
14+
"parcel": "^2.13.3",
1615
"regenerator-runtime": "^0.13.3",
1716
"request": "^2.88.2"
1817
},
1918
"devDependencies": {
2019
"@babel/core": "^7.8.6",
2120
"@babel/preset-env": "^7.8.6",
22-
"parcel-bundler": "^1.6.1"
21+
"crypto-browserify": "^3.12.1",
22+
"events": "^3.3.0",
23+
"process": "^0.11.10",
24+
"stream-browserify": "^3.0.0",
25+
"string_decoder": "^1.3.0",
26+
"vm-browserify": "^1.1.2"
2327
}
24-
}
28+
}

0 commit comments

Comments
 (0)