Skip to content

Commit d465a22

Browse files
committed
Delete obsolete blueprint define.
I think this was only needed for the jlab manager anyway.
1 parent 723e3ad commit d465a22

File tree

6 files changed

+0
-46
lines changed

6 files changed

+0
-46
lines changed

examples/web1/webpack.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,4 @@ module.exports = {
1212
module: {
1313
rules: [{ test: /\.css$/i, use: ['style-loader', 'css-loader'] }],
1414
},
15-
plugins: [
16-
new webpack.DefinePlugin({
17-
// Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
18-
'process.env': '{}',
19-
}),
20-
],
2115
};

examples/web2/webpack.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,4 @@ module.exports = {
1818
{ test: /\.svg$/i, type: 'asset' },
1919
],
2020
},
21-
plugins: [
22-
new webpack.DefinePlugin({
23-
// Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
24-
'process.env': '{}',
25-
}),
26-
],
2721
};

examples/web3/webpack.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,4 @@ module.exports = {
1818
{ test: /\.svg$/i, type: 'asset' },
1919
],
2020
},
21-
plugins: [
22-
new webpack.DefinePlugin({
23-
// Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
24-
'process.env': '{}',
25-
}),
26-
],
2721
};

examples/web4/webpack.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,4 @@ module.exports = {
1717
{ test: /\.svg$/i, type: 'asset' },
1818
],
1919
},
20-
plugins: [
21-
new webpack.DefinePlugin({
22-
// Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
23-
'process.env': '{}',
24-
}),
25-
],
2620
};

packages/html-manager/test/webpack.conf.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,4 @@ module.exports = {
4949
{ test: /\.svg$/i, type: 'asset' },
5050
],
5151
},
52-
plugins: [
53-
new webpack.DefinePlugin({
54-
// Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
55-
'process.env': '{}',
56-
}),
57-
],
5852
};

packages/html-manager/webpack.config.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
// Here we generate the /dist files that allow widget embedding
55

66
var path = require('path');
7-
var webpack = require('webpack');
8-
9-
var version = require('./package.json').version;
107

118
var rules = [
129
{ test: /\.css$/, use: ['style-loader', 'css-loader'] },
@@ -15,13 +12,6 @@ var rules = [
1512
{ test: /\.svg$/i, type: 'asset' },
1613
];
1714

18-
var plugins = [
19-
new webpack.DefinePlugin({
20-
// Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
21-
'process.env': '{}',
22-
}),
23-
];
24-
2515
module.exports = [
2616
{
2717
// script that renders widgets using the standard embedding and can only render standard controls
@@ -33,7 +23,6 @@ module.exports = [
3323
devtool: 'source-map',
3424
module: { rules: rules },
3525
mode: 'production',
36-
plugins: plugins,
3726
},
3827
{
3928
// script that renders widgets using the amd embedding and can render third-party custom widgets
@@ -44,7 +33,6 @@ module.exports = [
4433
},
4534
module: { rules: rules },
4635
mode: 'production',
47-
plugins: plugins,
4836
},
4937
{
5038
// embed library that depends on requirejs, and can load third-party widgets dynamically
@@ -57,7 +45,6 @@ module.exports = [
5745
},
5846
module: { rules: rules },
5947
mode: 'production',
60-
plugins: plugins,
6148
},
6249
{
6350
// @jupyter-widgets/html-manager
@@ -71,7 +58,6 @@ module.exports = [
7158
module: { rules: rules },
7259
externals: ['@jupyter-widgets/base', '@jupyter-widgets/controls'],
7360
mode: 'production',
74-
plugins: plugins,
7561
},
7662
{
7763
// @jupyter-widgets/base
@@ -84,7 +70,6 @@ module.exports = [
8470
},
8571
module: { rules: rules },
8672
mode: 'production',
87-
plugins: plugins,
8873
},
8974
{
9075
// @jupyter-widgets/controls
@@ -98,6 +83,5 @@ module.exports = [
9883
module: { rules: rules },
9984
externals: ['@jupyter-widgets/base'],
10085
mode: 'production',
101-
plugins: plugins,
10286
},
10387
];

0 commit comments

Comments
 (0)