2.0.5 • Published 6 years ago

@adrenalinehunter/react-scripts v2.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

adrenalinehunter-react-scripts

This is a fork from the official Create React App repo.

Changes from original package :

Webpack: resolve.mainFiles config change

Using directory-named-webpack-plugin to change the behavior of Webpack resolver.

When importing a folder, Webpack will look for files named [directory_name].component.[extension], [directory_name].[extension] and index.[extension] (in that order) instead of just index.[extension].

This allows using Angular modules-style directories for React :

MyComponent/
  |- MyComponent.component.jsx
  |- MyComponent.test.jsx
  |- MyComponent.jss.jsx
  |- ...
import MyComponent from './MyComponent';

See https://webpack.js.org/configuration/resolve/#resolve-mainfiles.