Skip to content

Symlinks in project - loader not working when using include? #1643

@elado

Description

@elado

Can webpack read through symlinks? I have a simple symlink under /src with .jsx files. I have { test: /\.jsx?$/, loader: 'babel-loader?...', include: path.resolve(__dirname, 'src') } but it won't load files with babel-loader, I get ES5 compilation error.

If I replace the symlink with the actual folder and files - it works.
If I replace the include with exclude: /node_modules/ it also works.

Bug, or am I doing it wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions