cordova-plugin-nano-sqlite
Version:
NanoSQL SQLite Plugin: exposes a well documented, easy to use API for SQLite. Uses IndexedDB/WebSQL when testing in the browser, then uses SQLite on the device with the exact same API. Includes typescript support, an ORM and undo/redo built in.
32 lines (29 loc) • 670 B
JavaScript
const path = require('path');
var options = {
entry: {
plugin: [path.join(__dirname, 'src', 'sqlite-adapter.ts')],
},
output: {
path: path.join(__dirname),
filename: '[name].js',
libraryTarget: 'umd',
umdNamedDefine: true
},
resolve: {
extensions: ['.js', '.ts', '.tsx', '.scss', ".css", ".jsx"]
},
plugins: [
],
module: {
rules: [
{
test: /\.ts$|\.tsx$/,
loader: 'ts-loader',
options: {
configFile: "tsconfig.wp.json"
}
}
]
}
};
module.exports = options;