Skip to content

Can't import { Meteor } from 'meteor/meteor'. #61

@danimbrogno

Description

@danimbrogno

It doesn't seem like you can explicitly import package dependencies at the moment. Trying to do import { Meteor } from 'meteor/meteor' results in 'Module not found: Error: Cannot resolve module 'meteor/meteor' in ...`.

I'm trying to devise a way to make this work and could use some feedback. I'm very new to wallaby but it seems like there would be two steps to this.

One, we would need to preprocess the source files, look for any import statements that begin with "meteor/", and transform them from import { Meteor} from "meteor/meteor" into something like import { Meteor } from ".meteor/local/build/programs/web.browser/packages/meteor".

Two, we would add some sort of compiler to meteor packages to transform them from exporting to the global Package object to a babel compatible format (What would do achieve this?).

Any thoughts? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions