Skip to content

Commit b1a65ea

Browse files
authored
Merge pull request #8 from jihchi/upgrade_snowpack_to_v3
Upgrade snowpack to 3.0
2 parents 1b95761 + 8bb82fa commit b1a65ea

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,16 @@
4242
},
4343
"devDependencies": {
4444
"@glennsl/bs-jest": "^0.6.0",
45+
"@snowpack/app-scripts-react": "^1.12.6",
4546
"@snowpack/plugin-dotenv": "^2.0.5",
46-
"@snowpack/plugin-react-refresh": "^2.3.9",
47-
"@snowpack/plugin-run-script": "^2.2.1",
47+
"@snowpack/plugin-react-refresh": "^2.4.0",
48+
"@snowpack/plugin-run-script": "^2.3.0",
4849
"@testing-library/jest-dom": "^5.11.8",
4950
"@testing-library/react": "^11.1.1",
5051
"bs-platform": "^8.4.2",
5152
"bs-react-testing-library": "^0.8.0",
5253
"jest": "^26.6.3",
5354
"reason-react": "^0.9.1",
54-
"snowpack": "^2.18.5"
55+
"snowpack": "^3.0.7"
5556
}
5657
}

snowpack.config.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @type {import("snowpack").SnowpackUserConfig } */
22
module.exports = {
33
mount: {
4-
public: {url: '/', static: true},
5-
src: {url: '/dist'},
4+
public: { url: '/', static: true },
5+
src: { url: '/dist' },
66
},
77
plugins: [
88
'@snowpack/plugin-react-refresh',
@@ -13,12 +13,9 @@ module.exports = {
1313
cmd: 'bsb -make-world',
1414
watch: '$1 -w',
1515
},
16-
]
16+
],
1717
],
18-
install: [
19-
/* ... */
20-
],
21-
installOptions: {
18+
packageOptions: {
2219
/* ... */
2320
},
2421
devOptions: {

0 commit comments

Comments
 (0)