Meteor-Community-Packages / meteor-roles

Authorization package for Meteor, compatible with built-in accounts packages
http://meteor-community-packages.github.io/meteor-roles/
MIT License
921 stars 166 forks source link

Import Roles with ES6 Syntax? #251

Closed joncursi closed 6 years ago

joncursi commented 6 years ago

Is it possible to import the Roles global with ES6 import syntax? This request was also mentioned in https://github.com/alanning/meteor-roles/issues/165#issuecomment-211817551

joncursi commented 6 years ago

Looks like this works, even though it is undocumented:

import { Roles } from 'meteor/alanning:roles';
mitar commented 6 years ago

This is a normal Meteor importing of Meteor packages.