Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jiku/modules/pixi #6053

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions tools/tests/apps/modules/README.md
Expand Up @@ -8,3 +8,18 @@ npm test # just does `meteor run`
```

then visit [localhost:3000](//localhost:3000) in your browser.

### jiku

Maybe related issues with PIXI through Webpack

[1](https://github.com/pixijs/pixi.js/issues/1854)
[2](https://github.com/pixijs/pixi.js/issues/2078)

Where they set

```javascript
node: {
fs: "empty"
}
```
3 changes: 2 additions & 1 deletion tools/tests/apps/modules/package.json
Expand Up @@ -5,7 +5,8 @@
"private": true,
"dependencies": {
"moment": "2.11.1",
"regenerator": "^0.8.42"
"regenerator": "^0.8.42",
"pixi.js": "^3.0.9"
},
"scripts": {
"test": "../../../../meteor run"
Expand Down
8 changes: 8 additions & 0 deletions tools/tests/apps/modules/tests.js
Expand Up @@ -194,3 +194,11 @@ describe("Meteor packages", () => {
assert.strictEqual(mtp.where, Meteor.isServer ? "server" : "client");
});
});

describe("PixiJS", () => {
Meteor.isClient &&
it("should be importable on the client", () => {
import PIXI from "pixi.js";
assert.strictEqual(require("PIXI"), PIXI);
});
});