/
githubmirror
/
meteor
Обзор
Документация
Войти
/
githubmirror
/
meteor
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
devel
packages/modules/package.js
27 строк
846 B
Nacho Codoñer
Meteor version to 3.1 :comet:
20 ноя 2024, 19:04
20 ноя 2024, 19:04
815b674
Код
Авторство
О чём код?
Package.describe({ name: "modules", version: '0.20.3', summary: "CommonJS module system", documentation: "README.md" }); Npm.depends({ "@meteorjs/reify": "0.25.4", "meteor-babel-helpers": "0.0.3", }); Package.onUse(function(api) { api.use("modules-runtime"); api.use("modules-runtime-hot", { weak: true }); api.mainModule("client.js", "client"); api.mainModule("server.js", "server"); api.export("meteorInstall"); // When compiling legacy code, the babel-compiler and meteor-babel // packages assume meteorBabelHelpers.sanitizeForInObject is defined. // Since the modules package is responsible for code from node_modules, // it must also be responsible for exposing this runtime helper, but // only in the legacy bundle. api.addFiles("legacy.js", "legacy"); api.export("meteorBabelHelpers", "legacy"); });