Skip to content

Commit

Permalink
#75 added alias for pixi.js and pixi.js-legacy in order to correct ty…
Browse files Browse the repository at this point in the history
…pes detection.
  • Loading branch information
artzub committed Jan 7, 2021
1 parent bfa6e05 commit 5319898
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ module.exports = function(webpackEnv) {
'react-dom$': 'react-dom/profiling',
'scheduler/tracing': 'scheduler/tracing-profiling',
}),
'pixijs': isEnvProduction ? 'pixi.js-legacy' : 'pixi.js',
...(modules.webpackAliases || {}),
'@': path.resolve(__dirname, '../src')
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as PIXI from 'pixijs';
import * as palettes from '@material-ui/core/colors';
import { extent } from 'd3-array';
import { color as d3color } from 'd3-color';
Expand All @@ -8,7 +9,6 @@ import {
} from 'd3-force';
import { scaleLinear, scaleLog, scaleOrdinal } from 'd3-scale';
import gsap from 'gsap';
import * as PIXI from 'pixi.js-legacy';
import BackgroundGrid from '../shared/BackgroundGrid';
import Locator from '../shared/Locator';
import forceCluster from './forceCluster';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Visualization/shared/BackgroundGrid.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as PIXI from 'pixi.js-legacy';
import * as PIXI from 'pixijs';

const defaultCellSize = 100;

Expand Down
2 changes: 1 addition & 1 deletion src/components/Visualization/shared/Locator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as PIXI from 'pixijs';
import gsap from 'gsap';
import * as PIXI from 'pixi.js-legacy';
import { drawDashedPolygon } from '../shared/drawDashedPolygon';

class Locator extends PIXI.Container {
Expand Down

0 comments on commit 5319898

Please sign in to comment.