Skip to content

Commit

Permalink
0.0.89
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Sep 26, 2024
1 parent 9ecd767 commit 6c6355c
Show file tree
Hide file tree
Showing 8 changed files with 586 additions and 157 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,4 @@ extension/*.html
/*.pem

.env*.local
webpack-stats.son
2 changes: 1 addition & 1 deletion deeplinks
Submodule deeplinks updated from 7bd917 to ab3727
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/perception-app",
"version": "0.0.87",
"version": "0.0.89",
"description": "Your second memory.",
"homepage": "https://deep.foundation/",
"author": {
Expand Down
4 changes: 2 additions & 2 deletions imports/graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Id, useDeep } from '@deep-foundation/deeplinks';
// import d3Force from 'cytoscape-d3-force';
// import deepd3Force from 'cytoscape-deep-d3-force';
import cola from 'cytoscape-cola';
import fcose from 'cytoscape-fcose';
// import fcose from 'cytoscape-fcose';
// import euler from 'cytoscape-euler';
// import elk from 'cytoscape-elk';
// import cxtmenu from 'cytoscape-cxtmenu';
Expand Down Expand Up @@ -48,7 +48,7 @@ cytoscape.use(dagre);
// cytoscape.use(euler);
// cytoscape.use(d3Force);
// cytoscape.use(deepd3Force);
cytoscape.use(fcose);
// cytoscape.use(fcose);
cytoscape.use(cola);

cytoscape.use(edgeConnections);
Expand Down
24 changes: 23 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ const nextEnv = require('next-env');
const dotenvLoad = require('dotenv-load');
const { i18n } = require('./next-i18next.config');
const path = require('path');
const { StatsWriterPlugin } = require('webpack-stats-plugin');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});

dotenvLoad();

Expand All @@ -28,7 +32,24 @@ const config = {
experimental: {
serverSourceMaps: true,
},
webpack: (config, { defaultLoaders: { babel } }) => {
// Automatically bundle external packages in the Pages Router:
bundlePagesRouterDependencies: true,
// Opt specific packages out of bundling for both App and Pages Router:
serverExternalPackages: ['react-icons'],
webpack: (config, options) => {
const { defaultLoaders: { babel } } = options;
if (!options.dev && !options.isServer) {
config.plugins.push(
new StatsWriterPlugin({
filename: '../webpack-stats.json',
stats: {
assets: true,
chunks: true,
modules: true
}
})
);
}
// config.module = {
// ...config.module,
// rules: [
Expand Down Expand Up @@ -65,4 +86,5 @@ const config = {
...(+(process?.env?.NEXT_PUBLIC_I18N_DISABLE || 0) ? {} : { i18n }),
}

// module.exports = withBundleAnalyzer(withNextEnv(config));
module.exports = withNextEnv(config);
Loading

0 comments on commit 6c6355c

Please sign in to comment.