diff --git a/config/webpack.config.base.js b/config/webpack.config.base.js index 30477f72..6d566114 100644 --- a/config/webpack.config.base.js +++ b/config/webpack.config.base.js @@ -158,6 +158,8 @@ const makeBaseConfig = ({ mode, target, react, hmre, devtool, plugins, tsconfig '@tanker/verification-ui': path.resolve(__dirname, '../packages/verification-ui/src/index.tsx'), '@tanker/filekit': path.resolve(__dirname, '../packages/filekit/src/index.ts'), '@tanker/functional-tests': path.resolve(__dirname, '../packages/functional-tests/src/index.ts'), + // dexie resolves to 'dist/modern/dexie.mjs' by default, which is not IE11 compatible + // 'dist/dexie.js' is compatible dexie: path.resolve(__dirname, '../node_modules/dexie/dist/dexie.js'), }, extensions, diff --git a/run-ci.py b/run-ci.py index 208771b8..9e32905e 100644 --- a/run-ci.py +++ b/run-ci.py @@ -1,5 +1,4 @@ import argparse -import json import os import re import shutil @@ -241,22 +240,11 @@ def deploy_sdk(*, version: str) -> None: publish_npm_package(package_name, version) -def patch_dexie_resolution(*, test_dir: Path) -> None: - # Freeze dexie version until https://github.com/dfahlander/Dexie.js/issues/1439 is fixed - package = test_dir / "package.json" - with open(package, "r+") as package_file: - data = json.load(package_file) - package_file.seek(0) # rewind - data["resolutions"] = {"dexie": "3.0.3"} - json.dump(data, package_file, indent=4) - - def test_deploy(*, version: str) -> None: test_dir = Path("test") index_file = test_dir / "index.js" test_dir.mkdir() tankerci.js.run_yarn("init", "--yes", cwd=test_dir) - patch_dexie_resolution(test_dir=test_dir) tankerci.js.run_yarn("add", f"@tanker/client-browser@{version}", cwd=test_dir) index_file.write_text('require("@tanker/client-browser");') tankerci.run("node", "index.js", cwd=test_dir)