diff --git a/README.md b/README.md index 0d20097..f43098d 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,11 @@ ```sh npm install pixi.js ``` +There is no default export. The correct way to import PixiJS is: + +```js +import * as PIXI from 'pixi.js' +``` #### CDN Install (via cdnjs) diff --git a/README.md b/README.md index 0d20097..f43098d 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,11 @@ ```sh npm install pixi.js ``` +There is no default export. The correct way to import PixiJS is: + +```js +import * as PIXI from 'pixi.js' +``` #### CDN Install (via cdnjs) diff --git a/bundles/pixi.js-legacy/README.md b/bundles/pixi.js-legacy/README.md index df158fb..46d1325 100644 --- a/bundles/pixi.js-legacy/README.md +++ b/bundles/pixi.js-legacy/README.md @@ -20,7 +20,11 @@ ``` npm install pixi.js-legacy ``` +There is no default export. The correct way to import PixiJS is: +```js +import * as PIXI from 'pixi.js-legacy' +``` ### Basic Usage Example ```js diff --git a/README.md b/README.md index 0d20097..f43098d 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,11 @@ ```sh npm install pixi.js ``` +There is no default export. The correct way to import PixiJS is: + +```js +import * as PIXI from 'pixi.js' +``` #### CDN Install (via cdnjs) diff --git a/bundles/pixi.js-legacy/README.md b/bundles/pixi.js-legacy/README.md index df158fb..46d1325 100644 --- a/bundles/pixi.js-legacy/README.md +++ b/bundles/pixi.js-legacy/README.md @@ -20,7 +20,11 @@ ``` npm install pixi.js-legacy ``` +There is no default export. The correct way to import PixiJS is: +```js +import * as PIXI from 'pixi.js-legacy' +``` ### Basic Usage Example ```js diff --git a/bundles/pixi.js/README.md b/bundles/pixi.js/README.md index ee34013..a23c5d1 100644 --- a/bundles/pixi.js/README.md +++ b/bundles/pixi.js/README.md @@ -18,7 +18,11 @@ ``` npm install pixi.js ``` +There is no default export. The correct way to import PixiJS is: +```js +import * as PIXI from 'pixi.js' +``` ### Basic Usage Example ```js