Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

react

v1.0.3arrow_drop_down
v1.0.3
v1.0.2
STATUS
Passing
DOWNLOADS
1,111
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
A year ago
SIZE
N/A
1 contributor
Install react as a package?
Copied
npm i @bit/semantic-org.semantic-ui-react-compiler.compilers.react
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Files
compilers/react/index.js
17 Lines(14 sloc)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require('@babel/preset-env');
require('@babel/preset-react');
require('@babel/plugin-proposal-class-properties');
require('@babel/plugin-proposal-export-default-from');
require('@babel/plugin-proposal-export-namespace-from');
require('babel-plugin-transform-react-handled-props');

const baseCompile = require('../../internal/babelBaseCompiler');
const compiledFileTypes = ['js', 'jsx'];

const compile = (files, distPath) => {
  return baseCompile(files, distPath, __dirname, compiledFileTypes);
}

export default {
  compile
};