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

Lazy module export #395

Closed
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
4 changes: 1 addition & 3 deletions package/collection2/package.js
Expand Up @@ -27,7 +27,5 @@ Package.onUse(function(api) {
// Allow us to detect 'insecure'.
api.use('insecure@1.0.0', {weak: true});

api.mainModule('collection2.js');

api.export('Collection2');
api.mainModule('collection2.js', ['client', 'server'], { lazy: true });
});
1 change: 1 addition & 0 deletions tests/_main.tests.js
@@ -1 +1,2 @@
import 'babel-polyfill';
import 'meteor/aldeed:collection2';
7 changes: 4 additions & 3 deletions tests/package.json
Expand Up @@ -2,9 +2,9 @@
"name": "tests",
"private": true,
"scripts": {
"test": "METEOR_PACKAGE_DIRS=../package TEST_BROWSER_DRIVER=nightmare meteor test --once --driver-package meteortesting:mocha",
"test:watch": "METEOR_PACKAGE_DIRS=../package TEST_BROWSER_DRIVER=nightmare TEST_WATCH=1 meteor test --driver-package meteortesting:mocha",
"test:watch:browser": "METEOR_PACKAGE_DIRS=../package TEST_WATCH=1 meteor test --driver-package meteortesting:mocha"
"test": "cross-env METEOR_PACKAGE_DIRS=../package TEST_BROWSER_DRIVER=nightmare meteor test --once --driver-package meteortesting:mocha",
"test:watch": "cross-env METEOR_PACKAGE_DIRS=../package TEST_BROWSER_DRIVER=nightmare TEST_WATCH=1 meteor test --driver-package meteortesting:mocha",
"test:watch:browser": "cross-env METEOR_PACKAGE_DIRS=../package TEST_WATCH=1 meteor test --driver-package meteortesting:mocha"
},
"dependencies": {
"@babel/runtime": "^7.3.1",
Expand All @@ -14,6 +14,7 @@
},
"devDependencies": {
"chromedriver": "^2.35.0",
"cross-env": "^5.2.1",
"expect": "^1.20.2",
"istanbul-lib-coverage": "^1.1.1",
"nightmare": "^3.0.1",
Expand Down