mirror of
https://github.com/tatz884/RescueTime-Obsidian.git
synced 2026-07-22 08:40:33 +00:00
26 lines
No EOL
586 B
JavaScript
26 lines
No EOL
586 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './main.ts', // Entry point of your application
|
|
mode: 'development',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: ['.tsx', '.ts', '.js'],
|
|
},
|
|
output: {
|
|
filename: 'main.js',
|
|
path: __dirname,
|
|
libraryTarget: "commonjs2"
|
|
},
|
|
externals: {
|
|
obsidian: 'commonjs2 obsidian'
|
|
}
|
|
}; |