mirror of
https://github.com/tauri-apps/tauri-forage.git
synced 2026-02-04 10:41:21 +01:00
32 lines
689 B
JavaScript
32 lines
689 B
JavaScript
const path = require('path')
|
|
|
|
module.exports = {
|
|
// entry: './src/index.ts',
|
|
entry: {
|
|
'cryptoForage': './src/cryptoForage.ts',
|
|
'cryptoPrimitives': './src/cryptoPrimitives.ts',
|
|
'curriedForage': './src/curriedForage.ts',
|
|
'handler': './src/handler.ts',
|
|
'index': './src/index.ts',
|
|
},
|
|
devtool: 'source-map',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: [ '.tsx', '.ts', '.js' ],
|
|
},
|
|
output: {
|
|
filename: '[name].js',
|
|
path: path.resolve(__dirname, 'dist'),
|
|
library: 'curriedForage',
|
|
libraryTarget: 'umd'
|
|
},
|
|
target: 'node'
|
|
} |