Having a "/" for absolute imports is different from how it's typically done in Webpack & is causing issues in text editors like VSCode.
Works with Meteor but not VSCode:
import { getProduct } from '/imports/api/products/methods';
Works with VSCode but not Meteor:
import { getProduct } from 'imports/api/products/methods';
I haven't tried it but I think you can do that with babel-plugin-module-resolver.
Can confirm that this works. Thanks!
I should note though that this breaks with dynamic imports.
Most helpful comment
I haven't tried it but I think you can do that with
babel-plugin-module-resolver.