babel icon indicating copy to clipboard operation
babel copied to clipboard

Achieve if () import 'foo.scss'; compatability with JS parsers? (hyperclick)

Open softwarecreations opened this issue 4 years ago • 0 comments

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

softwarecreations avatar Jun 11 '20 15:06 softwarecreations