mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Note that the value of the "main" property must include the ".node" extension explicitly, because I have yet to encounter an npm package with a native "main" module that omits the ".node" extension, and I am loathe to start calling files.stat(id + ".node") uselessly for every single missing module. Fixes #7947.
18 lines
413 B
JavaScript
18 lines
413 B
JavaScript
import assert from "assert";
|
|
|
|
import "github";
|
|
import "aws-sdk";
|
|
import "stripe";
|
|
import "winston";
|
|
import "mssql";
|
|
|
|
// This package has a native .node module as the "main" property of its
|
|
// package.json file. (#7947)
|
|
import { start } from "idle-gc";
|
|
assert.strictEqual(typeof start, "function");
|
|
|
|
assert.strictEqual(Meteor.isServer, true);
|
|
assert.strictEqual(Meteor.isClient, false);
|
|
|
|
export default module.id;
|