question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to add leading prefix to imports

See original GitHub issue

Hi there, First of all, let me just say that this package is such a relief. Thank you, thank you for putting this together. I’ve been in import hell as I get up to speed with imports, and having this package is such a relief already.

So, feature request.

When using Meteor, everything is working swimmingly, but we need an option for a leading prefix. For instance, I press Cmd+Shift+j over the word “AddPost”, and we get the following situation:

// created import string 
import AddPost from 'imports/ui/workflows/posts/AddPost';

// desired import string 
import AddPost from '/imports/ui/workflows/posts/AddPost';

Apparently Meteor want’s absolute URLs that begin with a /.

Would you be willing to accept a PR for this?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20

github_iconTop GitHub Comments

1reaction
trotzigcommented, Jul 14, 2016

Hey @awatson1978, where are your priorities!? Surely presenting at the UN can’t be more important than adding a feature to ImportJS.

Just kidding – that’s amazing!

0reactions
rhettlivingstoncommented, Jul 25, 2016

The changes in #310 Module Specifier and #313 Fix Meteor absolute path references to modules resolved this issue.

Closing #288.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Leading zeros in Excel: how to add, remove and hide - Ablebits
Select the cell(s) where you want to prefix numbers with 0. · Go to the Home tab > Number group, and select Text...
Read more >
how to add prefix zero to all matnr fields in itab - SAP Community
Hi,. commonly used conversion routine is ALPHA. It is conversion used to insert leading zero for document number. For example, in sales order...
Read more >
Add leading zeros to digits using Text
Solved: I've imported data from an Excel file into a PowerApp. One of the columns is called "SectionNumber" and it may be a...
Read more >
9 Ways To Add Leading Zeros In Excel
Select the range of cells you want to add leading zeros to and open up the Format Cells dialog box. Right click and...
Read more >
Keep first '0' when you import a CSV file - Salesforce Help
If the field value is 012345, then the custom format should be '000000' to indicate 6 digits with the 0. 3. This will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found