diff --git a/package.json b/package.json index 5697709..341eb0d 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "watch:src": "tsc -w" }, "dependencies": { - "@datalayer/run": "^0.2.0" + "@datalayer/run": "^0.2.4" }, "devDependencies": { "@babel/core": "^7.21.0", @@ -195,10 +195,6 @@ "htmlparser2": "8.0.1", "react": "18.2.0", "react-dom": "18.2.0", - "react-redux": "8.1.2", - "redux": "4.1.0", - "redux-observable": "1.2.0", - "rxjs": "6.6.0", "styled-components": "5.3.10", "typescript": "5.0.3", "webpack": "5.74.0", @@ -216,6 +212,12 @@ "access": "public" }, "jupyterlab": { + "disabledExtensions": [ + "@jupyterlab/apputils-extension:sessionDialogs", + "@jupyterlab/docmanager-extension:manager", + "@jupyterlab/running-extension:plugin", + "@jupyterlab/running-extension:sidebar" + ], "discovery": { "server": { "managers": [ @@ -231,6 +233,14 @@ "schemaDir": "schema", "webpackConfig": "./webpack.lab-config.js", "sharedPackages": { + "react": { + "bundled": true, + "singleton": true + }, + "react-dom": { + "bundled": true, + "singleton": true + }, "@datalayer/icons-react": { "bundled": true, "singleton": true @@ -255,6 +265,10 @@ "bundled": true, "singleton": true }, + "@jupyterlite/pyodide-kernel": { + "bundled": true, + "singleton": true + }, "@jupyterlite/server": { "bundled": true, "singleton": true diff --git a/webpack.config.js b/webpack.config.js index 9845fcb..a0a7eff 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,13 +4,12 @@ * Datalayer License */ -const path = require('path'); +// const path = require('path'); const webpack = require('webpack'); const miniSVGDataURI = require('mini-svg-data-uri'); const HtmlWebpackPlugin = require('html-webpack-plugin'); -const BundleAnalyzerPlugin = require('webpack-bundle-analyzer') - .BundleAnalyzerPlugin; +const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; /* const shimJS = path.resolve(__dirname, 'src', 'emptyshim.js'); function shim(regExp) { @@ -22,7 +21,7 @@ const mode = IS_PRODUCTION ? 'production' : 'development'; const devtool = IS_PRODUCTION ? false : 'inline-cheap-source-map'; const minimize = IS_PRODUCTION ? true : false; const publicPath = IS_PRODUCTION - ? '/static/datalayer/' // This has to be /static/datalayer. + ? '/static/datalayer/' // This has to remain /static/datalayer. : 'http://localhost:3063/'; const commonOptions = { @@ -139,7 +138,7 @@ const commonOptions = { generator: { filename: 'schema/[name][ext][query]' } - } + }, ] }, }; @@ -167,11 +166,7 @@ module.exports = [ generateStatsFile: false }), /* - shim(/@fortawesome/), - shim(/moment/), - shim(/react-jvectormap/), - shim(/react-slick/), - shim(/react-tagsinput/), + shim(/@jupyterlite\/pyodide-kernel/), */ new HtmlWebpackPlugin({ template: './public/index.html'