Skip to main content

Use in React

Projects created with Create React App

No additional configuration is required.

Custom React Projects

Add the following to the project's webpack configuration to support preferential parsing of .web.* files.

module.exports = {
//...
resolve: {
extensions: [
"web.mjs",
"mjs",
"web.js",
"js",
"web.ts",
"ts",
"web.tsx",
"tsx",
"json",
"web.jsx",
"jsx",
],
},
};