Importing a class within an npm module in meteor -
i trying import class allhtmlentities npm module html-entities i'm not able it. tried import entites 'html-entities'
it's giving me error. tried doing var entities = require('html-entities').allhtmlentities;
, worked, meteorjs docs suggests using import instead of require.
does know import
equivalent of var entities = require('html-entities').allhtmlentities;
is?
import {allhtmlentities entites} 'html-entities';
Comments
Post a Comment