Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
echarles committed Aug 30, 2024
1 parent fb31b27 commit ce04ae6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
24 changes: 19 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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": [
Expand All @@ -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
Expand All @@ -255,6 +265,10 @@
"bundled": true,
"singleton": true
},
"@jupyterlite/pyodide-kernel": {
"bundled": true,
"singleton": true
},
"@jupyterlite/server": {
"bundled": true,
"singleton": true
Expand Down
15 changes: 5 additions & 10 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 = {
Expand Down Expand Up @@ -139,7 +138,7 @@ const commonOptions = {
generator: {
filename: 'schema/[name][ext][query]'
}
}
},
]
},
};
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit ce04ae6

Please sign in to comment.