Skip to content

Commit

Permalink
Merge pull request #412 from stanislawosinski/foamtree-update
Browse files Browse the repository at this point in the history
Upgrade to FoamTree 3.5.0, now available as an NPM package.
  • Loading branch information
th0r authored Jan 21, 2021
2 parents 1ccda17 + f36ac09 commit 5a2f5a3
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 265 deletions.
3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ node_modules
lib
public

# Vendor code
client/vendor

# Test fixtures
test/bundles
test/stats
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
* 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 [@
stanislawosinski](https://github.com/stanislawosinski))

* **Internal**
* 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 [@
stanislawosinski](https://github.com/stanislawosinski))

## 4.3.0

* **Improvement**
Expand Down
2 changes: 1 addition & 1 deletion client/components/Treemap.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Component} from 'preact';
import FoamTree from 'carrotsearch.foamtree';
import FoamTree from '@carrotsearch/foamtree';

export default class Treemap extends Component {

Expand Down
256 changes: 0 additions & 256 deletions client/vendor/carrotsearch.foamtree.js

This file was deleted.

6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@babel/preset-react": "7.12.5",
"@babel/register": "7.12.1",
"@babel/runtime": "7.12.5",
"@carrotsearch/foamtree": "3.5.0",
"autoprefixer": "10.0.1",
"babel-eslint": "10.1.0",
"babel-loader": "8.1.0",
Expand Down
6 changes: 1 addition & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ module.exports = opts => {
},

resolve: {
modules: [
`${__dirname}/client/vendor`,
'node_modules'
],
extensions: ['.js', '.jsx'],
alias: {
react: 'preact/compat',
Expand Down Expand Up @@ -60,7 +56,7 @@ module.exports = opts => {
rules: [
{
test: /\.jsx?$/u,
exclude: /(node_modules|client\/vendor)/u,
exclude: /node_modules/u,
loader: 'babel-loader',
options: {
babelrc: false,
Expand Down

0 comments on commit 5a2f5a3

Please sign in to comment.