diff --git a/server/shim/pixi/constants.js b/server/shim/pixi/constants.js deleted file mode 100644 index aff4fab..0000000 --- a/server/shim/pixi/constants.js +++ /dev/null @@ -1,40 +0,0 @@ -export const BLEND_MODES = { - NORMAL: 0, - ADD: 1, - MULTIPLY: 2, - SCREEN: 3, - OVERLAY: 4, - DARKEN: 5, - LIGHTEN: 6, - COLOR_DODGE: 7, - COLOR_BURN: 8, - HARD_LIGHT: 9, - SOFT_LIGHT: 10, - DIFFERENCE: 11, - EXCLUSION: 12, - HUE: 13, - SATURATION: 14, - COLOR: 15, - LUMINOSITY: 16, - NORMAL_NPM: 17, - ADD_NPM: 18, - SCREEN_NPM: 19, - NONE: 20, - - SRC_OVER: 0, - SRC_IN: 21, - SRC_OUT: 22, - SRC_ATOP: 23, - DST_OVER: 24, - DST_IN: 25, - DST_OUT: 26, - DST_ATOP: 27, - ERASE: 26, - SUBTRACT: 28, - XOR: 29, -}; - -export const SCALE_MODES = { - NEAREST: 0, - LINEAR: 1, -}; diff --git a/server/shim/pixi/core.js b/server/shim/pixi/core.js deleted file mode 100644 index c4b4ac7..0000000 --- a/server/shim/pixi/core.js +++ /dev/null @@ -1,13 +0,0 @@ -export class BaseRenderer {} -export class BaseTexture {} -export class BatchRenderer {} -export class Filter {} -export class Renderer { - - static registerPlugin() {} - -} -export class RenderTexture {} -export class Texture {} - -export const defaultFilterVertex = ''; diff --git a/server/shim/pixi/display.js b/server/shim/pixi/display.js deleted file mode 100644 index 11e8a24..0000000 --- a/server/shim/pixi/display.js +++ /dev/null @@ -1 +0,0 @@ -export class Container {} diff --git a/server/shim/pixi/graphics.js b/server/shim/pixi/graphics.js deleted file mode 100644 index e69de29..0000000 diff --git a/server/shim/pixi/settings/index.js b/server/shim/pixi/settings/index.js deleted file mode 100644 index 272a366..0000000 --- a/server/shim/pixi/settings/index.js +++ /dev/null @@ -1,4 +0,0 @@ -import {settings} from './settings'; -export {settings}; - -export const isMobile = settings.isMobile; diff --git a/server/shim/pixi/settings/settings.js b/server/shim/pixi/settings/settings.js deleted file mode 100644 index 9ad92d6..0000000 --- a/server/shim/pixi/settings/settings.js +++ /dev/null @@ -1,6 +0,0 @@ -export const settings = { - isMobile: { - android: {}, - apple: {}, - }, -}; \ No newline at end of file diff --git a/server/shim/pixi/text.js b/server/shim/pixi/text.js deleted file mode 100644 index e69de29..0000000 diff --git a/webpack.server.config.js b/webpack.server.config.js index ef67dd0..a728792 100644 --- a/webpack.server.config.js +++ b/webpack.server.config.js @@ -26,23 +26,6 @@ config.externals = [ whitelist: /(?:@avocado|@pixi|webpack\/hot\/signal)/, }), ]; -const pixiPackages = [ - 'constants', - 'core', - 'display', - 'graphics', - 'settings', - 'text', -]; -pixiPackages.forEach((pixiPackage) => { - config.resolve.alias[`@pixi/${pixiPackage}`] = path.join( - __dirname, - 'server', - 'shim', - 'pixi', - pixiPackage, - ); -}); config.module.rules[0].use.options.configFile = path.resolve( __dirname, 'babel.server.config.js' );