-
Notifications
You must be signed in to change notification settings - Fork 51
feat(sds): persistent storage for history #2741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
dad9cff
454dc4a
ca24c09
032c3f5
b8ee363
322240b
15f1a22
581430a
d52ea9f
d6412e5
ad4973a
503c348
e54dacd
a3202b5
4757322
ff8b4e5
2ee8b08
41f8fdf
721c494
8a749c4
e396c3b
ab6d3cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,16 @@ | ||
| const config = require("../../karma.conf.cjs"); | ||
| import path from "path"; | ||
|
|
||
| module.exports = config; | ||
| import baseConfig from "../../karma.conf.cjs"; | ||
|
|
||
| export default function (config) { | ||
| baseConfig(config); | ||
|
|
||
| const storageDir = path.resolve(__dirname, "src/message_channel/storage"); | ||
|
|
||
| // Swap node storage for browser storage in webpack builds | ||
| config.webpack.resolve.alias = { | ||
| ...config.webpack.resolve.alias, | ||
| [path.join(storageDir, "node.ts")]: path.join(storageDir, "browser.ts"), | ||
| [path.join(storageDir, "node.js")]: path.join(storageDir, "browser.ts") | ||
| }; | ||
| } | ||
|
Comment on lines
+1
to
+16
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__dirnameis not available in ES modules. If this file is converted to use ES module syntax, you'll need to useimport.meta.urlwithfileURLToPathanddirnamefrom thepathmodule instead, or useprocess.cwd()as an alternative.