Repository navigation
0.9.0
New
- All browsers targets are using now sqlite database instead of Indexdb / localStorage.
- Increase Kotlin to "2.2.20" as required by wasm.
- Require at least sqldelight 2.1.0
Requirement
JS & WasmJs
- Update your Gradle config
// {project}/build.gradle.kts
wasmJsMain.dependencies {
implementation(devNpm("copy-webpack-plugin", "9.1.0"))
}
// OR
jsMain.dependencies {
implementation(devNpm("copy-webpack-plugin", "9.1.0"))
}
- Update or Create your webpack folder
// {project}/webpack.config.d/sqljs.js
config.resolve = {
fallback: {
fs: false,
path: false,
crypto: false,
}
};
const CopyWebpackPlugin = require('copy-webpack-plugin');
config.plugins.push(
new CopyWebpackPlugin({
patterns: [
'../../node_modules/sql.js/dist/sql-wasm.wasm'
]
})
);