Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

update pyodide version #36

Closed
wants to merge 13 commits into from
Closed
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"@babel/cli": "7.19.3",
"@babel/core": "7.12.17",
"@babel/preset-env": "7.12.17",
"@pyodide/webpack-plugin": "^1.3.2",
"@types/lodash": "^4.14.180",
"babel-eslint": "10.1.0",
"comlink": "^4.3.1",
Expand All @@ -82,7 +83,7 @@
"lodash": "^4.17.21",
"prettier": "2.1.2",
"prettier-plugin-packagejson": "2.2.13",
"pyodide": "^0.23.2",
"pyodide": "^0.26.2",
"raw-loader": "^4.0.2",
"sync-message": "^0.0.10",
"ts-loader": "^9.2.6",
Expand All @@ -95,6 +96,6 @@
},
"peerDependencies": {
"comsync": "*",
"pyodide": "^0.23.2"
"pyodide": "*"
}
}
2 changes: 1 addition & 1 deletion test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ def _tests(driver, url):
text = elem.text
print(text)
assert "PASSED" in text
assert "FAILED" not in text
assert "FAILED" not in text
3 changes: 2 additions & 1 deletion test/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const HtmlWebpackPlugin = require("html-webpack-plugin");
const { PyodidePlugin } = require("@pyodide/webpack-plugin");

module.exports = {
mode: "development",
Expand All @@ -17,7 +18,7 @@ module.exports = {
path: __dirname + "/dist",
filename: "[name].js",
},
plugins: [new HtmlWebpackPlugin({excludeChunks: ["sw"]})],
plugins: [new HtmlWebpackPlugin({excludeChunks: ["sw"]}), new PyodidePlugin()],
module: {
rules: [
{
Expand Down
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require("path");
const { PyodidePlugin } = require("@pyodide/webpack-plugin");

module.exports = {
entry: "./lib/index.ts",
Expand All @@ -19,6 +20,7 @@ module.exports = {
},
],
},
plugins: [new PyodidePlugin()],
resolve: {
extensions: [".ts", ".js", ".d.ts"],
fallback: {url: false},
Expand Down
Loading
Loading