2.3.1 • Published 16 days ago

@kanopi/pack-react v2.3.1

Weekly downloads
-
License
GPL-2.0+
Repository
github
Last release
16 days ago

Kanopi Pack - React Support

The Kanopi Pack React module adds support to Webpack for React development and linting. React and associated libraries (i.e. React DOM) are NOT included in this package. The intent is for each front-end application to select the appropriate version (React 16.13+, 17+, 18+) for their use case.

Linting Support

Kanopi Pack offers JSX/TSX linting support out of the box, though an ESLint configuration is required. ESLint configurations are scoped within a particular directory. If you place all of your React apps in the ./assets/src/react folder, ensure there is an .eslintrc.js file there, or in a directory above it.

Additional Configuration

Following are the configuration options available in addition to the Standard Kanopi Pack configuration:

Section: devServer

Structure

"devServer": {
    "react": {
        "enableOverlay": false
    }
}

Details

SettingDefaultRequired?TypeUsage
react.enableOverlayfalseNoBooleanEnables the React Refresh overlay, redundant with the Webpack overlay so disabled by default.

Package Version Notes

PackageVersion LimitReason
chalk4.xVersion 5.x forward are ESM based, which is not easily compatible, staying on 4.x for CommonJS support
type-fest3.xLimited by version constrain of the react-refresh-webpack-plugin, which wants < 4.0.0
2.3.1

16 days ago

2.3.0

2 months ago

2.2.3

2 months ago

2.2.2

5 months ago

2.2.1

5 months ago

2.2.0

6 months ago

2.1.1

8 months ago

2.0.7

10 months ago

2.1.0

9 months ago

2.0.6

11 months ago

2.0.5

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

1.0.0

1 year ago