dojo / cli-build-widget

Command for building Dojo widgets
Other
6 stars 17 forks source link

Make sure loader resolution defaults to the scope of this package #70

Closed matt-gadd closed 4 years ago

matt-gadd commented 4 years ago

Bug Currently the behaviour of the loader resolution in webpack defaults to the root of the project, which means if you have 2 webpack related commands installed (say cli-build-widget), it can and up resolving to the wrong loaders from the other package (depending on how it's deduped by npm). To fix we should always resolve from the node_modules in this package first then the project node_modules.

resolveLoader: {
    modules: [path.resolve(__dirname, 'node_modules'), 'node_modules'],
}