Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Using loader for file in a dependency requires the dependency to have that loader installed #1472

@dbkr

Description

@dbkr

library a is a plain javascript library.
Application has a file b.js that does require('a'), application uses webpack
If webpack needs a loader to load any file in module a, the loader needs to be installed in library a's node_modfules folder. webpack will fail with error, "Cannot resolve module" if the loader is installed only in the application's node_modules folder.

Webpack should be able to load the loader from the application's node_modules folder such that libraries which don't use webpack don't have to depend on webpack loaders in order for applications that use them to use webpack.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions