Skip to content

Commit

Permalink
Revert course to fix bigger bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgv committed Nov 10, 2023
1 parent 7ef1a5b commit 7e69c9a
Show file tree
Hide file tree
Showing 24 changed files with 650 additions and 939 deletions.
7 changes: 3 additions & 4 deletions cli/plasmo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@
"framework"
],
"dependencies": {
"@parcel/rust": "2.10.2",
"@expo/spawn-async": "1.7.2",
"@parcel/fs": "2.10.2",
"@parcel/package-manager": "2.10.2",
"@parcel/watcher": "2.3.0",
"@parcel/fs": "2.8.3",
"@parcel/package-manager": "2.8.3",
"@parcel/watcher": "2.2.0",
"@plasmohq/init": "workspace:*",
"@plasmohq/parcel-config": "workspace:*",
"@plasmohq/parcel-core": "workspace:*",
Expand Down
11 changes: 5 additions & 6 deletions core/parcel-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@
"parcel": ">= 2.7.0"
},
"dependencies": {
"@parcel/diagnostic": "2.10.2",
"@parcel/diagnostic": "2.8.3",
"@parcel/graph": "3.0.2",
"@parcel/plugin": "2.10.2",
"@parcel/rust": "2.10.2",
"@parcel/utils": "2.10.2",
"@parcel/plugin": "2.8.3",
"@parcel/utils": "2.8.3",
"nullthrows": "1.1.1"
},
"devDependencies": {
"@parcel/bundler-default": "2.10.2",
"@parcel/types": "2.10.2",
"@parcel/bundler-default": "2.8.3",
"@parcel/types": "2.8.3",
"@plasmo/config": "workspace:*",
"@plasmo/utils": "workspace:*",
"tsup": "7.2.0"
Expand Down
2 changes: 1 addition & 1 deletion core/parcel-compressor-utf8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"tsup": "7.2.0"
},
"dependencies": {
"@parcel/plugin": "2.10.2"
"@parcel/plugin": "2.8.3"
}
}
36 changes: 18 additions & 18 deletions core/parcel-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@
},
"main": "index.json",
"dependencies": {
"@parcel/compressor-raw": "2.10.2",
"@parcel/config-default": "2.10.2",
"@parcel/optimizer-data-url": "2.10.2",
"@parcel/reporter-bundle-buddy": "2.10.2",
"@parcel/resolver-default": "2.10.2",
"@parcel/compressor-raw": "2.8.3",
"@parcel/config-default": "2.8.3",
"@parcel/optimizer-data-url": "2.8.3",
"@parcel/reporter-bundle-buddy": "2.8.3",
"@parcel/resolver-default": "2.8.3",
"@parcel/runtime-js": "2.8.3",
"@parcel/runtime-service-worker": "2.10.2",
"@parcel/runtime-service-worker": "2.8.3",
"@parcel/source-map": "2.1.1",
"@parcel/transformer-babel": "2.10.2",
"@parcel/transformer-css": "2.10.2",
"@parcel/transformer-graphql": "2.10.2",
"@parcel/transformer-inline-string": "2.10.2",
"@parcel/transformer-js": "2.10.2",
"@parcel/transformer-less": "2.10.2",
"@parcel/transformer-postcss": "2.10.2",
"@parcel/transformer-raw": "2.10.2",
"@parcel/transformer-react-refresh-wrap": "2.10.2",
"@parcel/transformer-sass": "2.10.2",
"@parcel/transformer-svg-react": "2.10.2",
"@parcel/transformer-worklet": "2.10.2",
"@parcel/transformer-babel": "2.8.3",
"@parcel/transformer-css": "2.8.3",
"@parcel/transformer-graphql": "2.8.3",
"@parcel/transformer-inline-string": "2.8.3",
"@parcel/transformer-js": "2.8.3",
"@parcel/transformer-less": "2.8.3",
"@parcel/transformer-postcss": "2.8.3",
"@parcel/transformer-raw": "2.8.3",
"@parcel/transformer-react-refresh-wrap": "2.8.3",
"@parcel/transformer-sass": "2.8.3",
"@parcel/transformer-svg-react": "2.8.3",
"@parcel/transformer-worklet": "2.8.3",
"@plasmohq/parcel-bundler": "workspace:*",
"@plasmohq/parcel-compressor-utf8": "workspace:*",
"@plasmohq/parcel-namer-manifest": "workspace:*",
Expand Down
29 changes: 14 additions & 15 deletions core/parcel-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,27 @@
"url": "https://github.com/PlasmoHQ/plasmo.git"
},
"devDependencies": {
"@parcel/core": "2.10.2",
"@parcel/core": "2.8.3",
"@parcel/types": "2.8.3",
"@plasmo/config": "workspace:*",
"@plasmo/utils": "workspace:*",
"tsup": "7.2.0"
},
"dependencies": {
"@parcel/rust": "2.10.2",
"@parcel/cache": "2.10.2",
"@parcel/diagnostic": "2.10.2",
"@parcel/events": "2.10.2",
"@parcel/fs": "2.10.2",
"@parcel/graph": "3.0.2",
"@parcel/hash": "2.9.3",
"@parcel/logger": "2.10.2",
"@parcel/package-manager": "2.10.2",
"@parcel/plugin": "2.10.2",
"@parcel/cache": "2.8.3",
"@parcel/diagnostic": "2.8.3",
"@parcel/events": "2.8.3",
"@parcel/fs": "2.8.3",
"@parcel/graph": "2.8.3",
"@parcel/hash": "2.8.3",
"@parcel/logger": "2.8.3",
"@parcel/package-manager": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/source-map": "2.1.1",
"@parcel/types": "2.10.2",
"@parcel/utils": "2.10.2",
"@parcel/watcher": "2.3.0",
"@parcel/workers": "2.10.2",
"@parcel/types": "2.8.3",
"@parcel/utils": "2.8.3",
"@parcel/watcher": "2.2.0",
"@parcel/workers": "2.8.3",
"abortcontroller-polyfill": "1.7.5",
"nullthrows": "1.1.1"
}
Expand Down
8 changes: 4 additions & 4 deletions core/parcel-namer-manifest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"tsup": "7.2.0"
},
"dependencies": {
"@parcel/core": "2.10.2",
"@parcel/plugin": "2.10.2",
"@parcel/types": "2.10.2",
"@parcel/utils": "2.10.2"
"@parcel/core": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/types": "2.8.3",
"@parcel/utils": "2.8.3"
}
}
6 changes: 3 additions & 3 deletions core/parcel-optimizer-encapsulate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"tsup": "7.2.0"
},
"dependencies": {
"@parcel/core": "2.10.2",
"@parcel/plugin": "2.10.2",
"@parcel/core": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/source-map": "2.1.1",
"@parcel/types": "2.10.2"
"@parcel/types": "2.8.3"
}
}
6 changes: 3 additions & 3 deletions core/parcel-optimizer-es/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"tsup": "7.2.0"
},
"dependencies": {
"@parcel/core": "2.10.2",
"@parcel/plugin": "2.10.2",
"@parcel/core": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/source-map": "2.1.1",
"@parcel/utils": "2.10.2",
"@parcel/utils": "2.8.3",
"@swc/core": "1.3.96",
"nullthrows": "1.1.1"
}
Expand Down
8 changes: 4 additions & 4 deletions core/parcel-packager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"tsup": "7.2.0"
},
"dependencies": {
"@parcel/core": "2.10.2",
"@parcel/plugin": "2.10.2",
"@parcel/types": "2.10.2",
"@parcel/utils": "2.10.2",
"@parcel/core": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/types": "2.8.3",
"@parcel/utils": "2.8.3",
"nullthrows": "1.1.1"
}
}
8 changes: 4 additions & 4 deletions core/parcel-resolver-post/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
"@plasmo/utils": "workspace:*"
},
"dependencies": {
"@parcel/core": "2.10.2",
"@parcel/core": "2.8.3",
"@parcel/hash": "2.9.3",
"@parcel/plugin": "2.10.2",
"@parcel/types": "2.10.2",
"@parcel/utils": "2.10.2",
"@parcel/plugin": "2.8.3",
"@parcel/types": "2.8.3",
"@parcel/utils": "2.8.3",
"tsup": "7.2.0",
"typescript": "5.2.2"
}
Expand Down
6 changes: 3 additions & 3 deletions core/parcel-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
"vm-browserify": "1.1.2"
},
"dependencies": {
"@parcel/core": "2.10.2",
"@parcel/core": "2.8.3",
"@parcel/hash": "2.9.3",
"@parcel/plugin": "2.10.2",
"@parcel/types": "2.10.2",
"@parcel/plugin": "2.8.3",
"@parcel/types": "2.8.3",
"fast-glob": "3.3.2",
"fs-extra": "11.1.1",
"got": "13.0.0"
Expand Down
6 changes: 3 additions & 3 deletions core/parcel-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"tsup": "7.2.0"
},
"dependencies": {
"@parcel/core": "2.10.2",
"@parcel/plugin": "2.10.2",
"@parcel/utils": "2.10.2",
"@parcel/core": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/utils": "2.8.3",
"react-refresh": "0.14.0"
}
}
17 changes: 1 addition & 16 deletions core/parcel-runtime/src/utils/hmr-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ export function hmrDownload(asset: HmrAsset) {
}
}

let supportsSourceURL = false
try {
;(0, eval)('throw new Error("test"); //# sourceURL=test.js')
} catch (err) {
supportsSourceURL = err.stack.includes("test.js")
}

export async function hmrApplyUpdates(assets: Array<HmrAsset>) {
global.parcelHotUpdate = Object.create(null)

Expand All @@ -49,9 +42,7 @@ export async function hmrApplyUpdates(assets: Array<HmrAsset>) {
)
})

const scriptsToRemove = await Promise.all(
supportsSourceURL ? [] : assets.map(hmrDownload)
)
const scriptsToRemove = await Promise.all(assets.map(hmrDownload))

try {
assets.forEach(function (asset) {
Expand Down Expand Up @@ -146,12 +137,6 @@ function hmrApply(bundle: ParcelBundle, asset: HmrAsset) {
}
}

if (supportsSourceURL) {
// Global eval. We would use `new Function` here but browser
// support for source maps is better with eval.
;(0, eval)(asset.output)
}

const fn = global.parcelHotUpdate[asset.id]
modules[asset.id] = [fn, deps]
} else if (bundle.parent) {
Expand Down
6 changes: 3 additions & 3 deletions core/parcel-transformer-inject-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"tsup": "7.2.0"
},
"dependencies": {
"@parcel/core": "2.10.2",
"@parcel/plugin": "2.10.2",
"@parcel/types": "2.10.2"
"@parcel/core": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/types": "2.8.3"
}
}
6 changes: 3 additions & 3 deletions core/parcel-transformer-inline-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"tsup": "7.2.0"
},
"dependencies": {
"@parcel/core": "2.10.2",
"@parcel/plugin": "2.10.2",
"@parcel/utils": "2.10.2",
"@parcel/core": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/utils": "2.8.3",
"browserslist": "4.22.1",
"lightningcss": "1.22.1"
}
Expand Down
12 changes: 6 additions & 6 deletions core/parcel-transformer-lab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"tsup": "7.2.0"
},
"dependencies": {
"@parcel/core": "2.10.2",
"@parcel/diagnostic": "2.10.2",
"@parcel/fs": "2.10.2",
"@parcel/plugin": "2.10.2",
"@parcel/types": "2.10.2",
"@parcel/utils": "2.10.2"
"@parcel/core": "2.8.3",
"@parcel/diagnostic": "2.8.3",
"@parcel/fs": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/types": "2.8.3",
"@parcel/utils": "2.8.3"
}
}
12 changes: 6 additions & 6 deletions core/parcel-transformer-manifest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
},
"dependencies": {
"@mischnic/json-sourcemap": "0.1.1",
"@parcel/core": "2.10.2",
"@parcel/diagnostic": "2.10.2",
"@parcel/fs": "2.10.2",
"@parcel/plugin": "2.10.2",
"@parcel/types": "2.10.2",
"@parcel/utils": "2.10.2",
"@parcel/core": "2.8.3",
"@parcel/diagnostic": "2.8.3",
"@parcel/fs": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/types": "2.8.3",
"@parcel/utils": "2.8.3",
"content-security-policy-parser": "0.4.1",
"json-schema-to-ts": "2.9.2",
"nullthrows": "1.1.1"
Expand Down
8 changes: 4 additions & 4 deletions core/parcel-transformer-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
"tsup": "7.2.0"
},
"dependencies": {
"@parcel/core": "2.10.2",
"@parcel/diagnostic": "2.10.2",
"@parcel/plugin": "2.10.2",
"@parcel/core": "2.8.3",
"@parcel/diagnostic": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/source-map": "2.1.1",
"@parcel/utils": "2.10.2",
"@parcel/utils": "2.8.3",
"svelte": "4.2.2"
}
}
10 changes: 5 additions & 5 deletions core/parcel-transformer-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
"tsup": "7.2.0"
},
"dependencies": {
"@parcel/core": "2.10.2",
"@parcel/diagnostic": "2.10.2",
"@parcel/plugin": "2.10.2",
"@parcel/core": "2.8.3",
"@parcel/diagnostic": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/source-map": "2.1.1",
"@parcel/types": "2.10.2",
"@parcel/utils": "2.10.2",
"@parcel/types": "2.8.3",
"@parcel/utils": "2.8.3",
"@plasmohq/consolidate": "0.17.0",
"@vue/compiler-sfc": "3.3.8",
"nullthrows": "1.1.1",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"react-refresh": "0.14.0"
},
"patchedDependencies": {
"@parcel/bundler-default@2.10.2": "patches/@parcel__bundler-default@2.10.2.patch",
"@parcel/core@2.10.2": "patches/@parcel__core@2.10.2.patch"
"@parcel/core@2.8.3": "patches/@parcel__core@2.8.3.patch",
"@parcel/bundler-default@2.8.3": "patches/@parcel__bundler-default@2.8.3.patch"
}
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions ...hes/@[email protected] → patches/@[email protected]
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/lib/DefaultBundler.js b/lib/DefaultBundler.js
index 1cea97aa3851b77fed1d6cd91abcf255c3f1cdaa..118611eaaf10ec307b1905a0e75d7c24f8a641a6 100644
index fbceeceb89ac5dc1a7aed7b6f05638b57a9e9a89..f042226db6d2fc0cb0c80d5858c5026e8ac1ef18 100644
--- a/lib/DefaultBundler.js
+++ b/lib/DefaultBundler.js
@@ -106,11 +106,12 @@ const dependencyPriorityEdges = {
@@ -102,11 +102,12 @@ const dependencyPriorityEdges = {
*
*/
var _default = new (_plugin().Bundler)({
Expand All @@ -18,5 +18,5 @@ index 1cea97aa3851b77fed1d6cd91abcf255c3f1cdaa..118611eaaf10ec307b1905a0e75d7c24
+ maxParallelRequests: 20,
+ };
},

bundle({
bundleGraph,
Loading

0 comments on commit 7e69c9a

Please sign in to comment.