Skip to content

Commit 5a2f5a3

Browse files
authored
Merge pull request #412 from stanislawosinski/foamtree-update
Upgrade to FoamTree 3.5.0, now available as an NPM package.
2 parents 1ccda17 + f36ac09 commit 5a2f5a3

7 files changed

Lines changed: 13 additions & 265 deletions

File tree

.eslintignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ node_modules
55
lib
66
public
77

8-
# Vendor code
9-
client/vendor
10-
118
# Test fixtures
129
test/bundles
1310
test/stats

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
2020
* Don't show an empty tooltip when hovering over the FoamTree attribution group or between top-level groups ([#413](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/413) by [@
2121
stanislawosinski](https://github.com/stanislawosinski))
2222

23+
* **Internal**
24+
* Upgrade FoamTree to version 3.5.0, replace vendor dependency with an NPM package ([#412](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/412) by [@
25+
stanislawosinski](https://github.com/stanislawosinski))
26+
2327
## 4.3.0
2428

2529
* **Improvement**

client/components/Treemap.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component} from 'preact';
2-
import FoamTree from 'carrotsearch.foamtree';
2+
import FoamTree from '@carrotsearch/foamtree';
33

44
export default class Treemap extends Component {
55

client/vendor/carrotsearch.foamtree.js

Lines changed: 0 additions & 256 deletions
This file was deleted.

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"@babel/preset-react": "7.12.5",
5353
"@babel/register": "7.12.1",
5454
"@babel/runtime": "7.12.5",
55+
"@carrotsearch/foamtree": "3.5.0",
5556
"autoprefixer": "10.0.1",
5657
"babel-eslint": "10.1.0",
5758
"babel-loader": "8.1.0",

webpack.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ module.exports = opts => {
2222
},
2323

2424
resolve: {
25-
modules: [
26-
`${__dirname}/client/vendor`,
27-
'node_modules'
28-
],
2925
extensions: ['.js', '.jsx'],
3026
alias: {
3127
react: 'preact/compat',
@@ -60,7 +56,7 @@ module.exports = opts => {
6056
rules: [
6157
{
6258
test: /\.jsx?$/u,
63-
exclude: /(node_modules|client\/vendor)/u,
59+
exclude: /node_modules/u,
6460
loader: 'babel-loader',
6561
options: {
6662
babelrc: false,

0 commit comments

Comments
 (0)