create-single-spa icon indicating copy to clipboard operation
create-single-spa copied to clipboard

Allow resolving modules from src directory

Open joeldenning opened this issue 3 years ago • 1 comments

For example:

import 'src/thing.js'

{
 resolve: {
   alias: {
     src: path.resolve(process.cwd(), 'src')
  }
}

joeldenning avatar Apr 09 '21 20:04 joeldenning

IMO: maybe best to just add to the docs site Custom Webpack Configuration section.

Benefits of not baking it in:

  1. no surprises for peeps who don't like alias-ing
  2. opportunity for peeps who go crazy with alias'ing to create as many as they want

eckdanny avatar Aug 12 '23 04:08 eckdanny