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.

Support webpack config resolution alias

See original GitHub issue

Its not uncommon to see module resolution aliases in webpack land:

// webpack.config.js
resolve: {
    alias: {
      components: path.join(__dirname, 'src', 'components'),
      config: path.join(__dirname, 'src', 'config'),
      data: path.join(__dirname, 'src', 'data'),
      lib: path.join(__dirname, 'src', 'lib'),
      rdx: path.join(__dirname, 'src', 'rdx')
    }
  }

Is it possible to set up a rule to that can enable module resolution uisng webpack style aliases?

I love this program. Lots of fun.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
akougblenoucommented, Dec 26, 2019

You should have received an invite @sverweij

1reaction
bcomnescommented, Jun 25, 2018

Unfortunately I haven’t had time to play with this yet 😫 also no longer working on the codebase that was doing this. If you think its good, I would take your word for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve | webpack
An object which maps extension to extension aliases. webpack.config.js module.exports = { //... resolve: ...
Read more >
How to Create a Path Alias in Webpack - Bitovi
Establish the Module Aliases · Open your Webpack.config.js file. · If it's not already there, add a resolve property to the configuration object ......
Read more >
Webpack doesn't resolve properly my alias - Stack Overflow
I am trying to have a namespace for my app to work as a module, and import my components using this namespace and...
Read more >
Module aliasing in Webpack. Problem, Solution, Complications
Webpack allows you to create aliases to import or require certain modules through the resolve.alias property in your config without any additional plugins....
Read more >
Simplify your imports with webpack aliases
By adding some options to webpack's resolve configuration object, we can define aliases for specific directories. For example:.
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