Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fixing web and packaged builds

Ilian Sapundshiev35a5f1bef632
diff --git a/app/main.worker.babel.js b/app/main.worker.babel.js
index 31dd89107..6fe272217 100644
--- a/app/main.worker.babel.js
+++ b/app/main.worker.babel.js
@@ -4,4 +4,4 @@ register({
extensions: ['.ts', '.tsx', '.js', '.json']
});
-require('./main.dev.ts');
+require('./splash-worker.ts');
diff --git a/configs/webpack.config.base.js b/configs/webpack.config.base.js
index 17e76c5cf..27ecf9dea 100644
--- a/configs/webpack.config.base.js
+++ b/configs/webpack.config.base.js
@@ -4,16 +4,17 @@
import path from 'path';
import webpack from 'webpack';
-import { dependencies } from '../package.json';
+// import { dependencies } from '../package.json';
export default {
- externals: [...Object.keys(dependencies || {})],
+ // externals: [...Object.keys(dependencies || {})],
module: {
rules: [
{
test: /\.[jt]sx?$/,
exclude: /node_modules/,
+ // include: [/app/],
use: [
{
loader: 'babel-loader',
@@ -37,7 +38,8 @@ export default {
* Determine the array of extensions that should be used to resolve modules.
*/
resolve: {
- extensions: ['.js', '.ts', '.tsx', '.json']
+ extensions: ['.js', '.ts', '.tsx', '.json'],
+ modules: [path.join(__dirname, '..', 'app'), 'node_modules']
},
plugins: [