Skip to content

Bundler doesn't import index.js if require is on a Directory #72

Closed
@boopathi

Description

@boopathi
- Project
  \ _ Component
       \ _ index.js
  \ _ App.js

App.js is the entry point

// App.js
var Component = require('./Component');

doesn't import index.js automatically. Had to manually specify

// App.js
var Component = require('./Component/index');

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