babel
babel copied to clipboard
Achieve if () import 'foo.scss'; compatability with JS parsers? (hyperclick)
Meteor has it's magical if (Meteor.isClient) import 'foo.scss';
syntax which violates JavaScript standards.
What is the best way to achieve compatibility with JavaScript parsers, like js-hyperclick, which fails to parse Meteor files as a result of this?
I've reported the issue and my workaround hack here: https://github.com/AsaAyers/js-hyperclick/issues/122