Non-Vite Setups
Using InlineCMS with Create React App, Next.js, Webpack, or any Babel-based toolchain.
If you’re not using Vite, use the Babel plugin for the same build-time transform.
Install
Section titled “Install”npm install -D babel-plugin-inlinecmsConfigure
Section titled “Configure”// .babelrc or babel.config.json{ "plugins": ["babel-plugin-inlinecms"]}Or with options:
{ "plugins": [["babel-plugin-inlinecms", { "skipFiles": ["test/**"] }]]}What it does
Section titled “What it does”The Babel plugin applies the identical transform as the Vite plugin:
- Finds JSX elements with the
inline-cmsprop - Generates a stable SHA1 fingerprint from
file:line:col - Replaces the tag with its InlineCMS wrapper (
h1toInlineH1, etc.) - Auto-injects the
@inlinecms/reactimport
Supported toolchains
Section titled “Supported toolchains”- Create React App
- Next.js (with custom Babel config)
- Webpack + babel-loader
- Parcel
- Rollup + @rollup/plugin-babel
The transform is framework-agnostic at the Babel level. It only requires JSX syntax support.
Was this page helpful? Your feedback goes straight to the docs team.