小编Gal*_*ler的帖子

React-App- Rewired won't add Babel Plugin

So I am trying to run react-native using react-native-web. It requires some babel plugins to be added.

My app was created using react-app-rewired. I have tried several ways to add the babel plugin, however, with no success.

I am using a config-overrides.js file that looks like this:

const { override, addBabelPlugins, addDecoratorsLegacy, fixBabelImports } = require('customize-cra');

const addHandleBarsLoader = config => {
    // add handlebars-loader so that handlebars templates in
    // webpack-dev-server's served html files are parsed
    // (specifically the …
Run Code Online (Sandbox Code Playgroud)

reactjs react-native-web babel-plugin

5
推荐指数
1
解决办法
2396
查看次数

标签 统计

babel-plugin ×1

react-native-web ×1

reactjs ×1