Help on creating an additional build plugin for .jsx

Hi,

I’m looking to create an additional build plugin for React which adds following line on top of every .jsx file.

import React from 'react'

Here’s the relevant babel plugin

This is to support, React’s stateless components if we are using React directly from ‘NPM’.

Is this doable with Meteor’s build plugin system?

1 Like