Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Resolve path to babel plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
foxyblocks committed Jun 25, 2017
1 parent 97c2e79 commit 0f9f8f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node
import fs from 'fs';
import coffeeReactTransform from 'coffee-react-transform';
import path from 'path';
import { convert as decaf } from 'decaffeinate';
import { transform as babelTransform } from 'babel-core';
import camelCase from 'lodash/camelCase';
Expand Down Expand Up @@ -90,7 +89,7 @@ function processFile(file) {
result = babelTransform(result, {
babelrc: false,
plugins: [
path.join(__dirname, '../node_modules', 'babel-plugin-transform-react-createelement-to-jsx'),
require.resolve('babel-plugin-transform-react-createelement-to-jsx'),
],
}).code;
} catch (e) {
Expand Down

0 comments on commit 0f9f8f0

Please sign in to comment.