Skip to content

Commit

Permalink
Use babel for building
Browse files Browse the repository at this point in the history
  • Loading branch information
varya committed Oct 15, 2015
1 parent b8a503d commit 2687d66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 31 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "React component for mapbox",
"main": "dist/react-mapbox.js",
"scripts": {
"build:dist": "webpack src/index.js dist/react-mapbox.js",
"build:dist": "./node_modules/babel/bin/babel.js src/MapBox.js -o dist/react-mapbox.js",
"build": "npm run build:dist",
"prepublish": "npm run build"
},
Expand All @@ -25,8 +25,7 @@
"devDependencies": {
"babel": "^5.8.23",
"babel-core": "^5.8.25",
"babel-loader": "^5.3.2",
"webpack": "^1.12.2"
"babel-loader": "^5.3.2"
},
"peerDependencies": {
"react": "^0.14.0",
Expand Down
6 changes: 3 additions & 3 deletions src/MapBox.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component } from 'react';
import { render } from 'react-dom';
import React from 'react';
import ReactDOM from 'react-dom';

export default class MapBox extends Component {
export default class MapBox extends React.Component {
render () {
return (
<h1>Test</h1>
Expand Down
25 changes: 0 additions & 25 deletions webpack.config.js

This file was deleted.

0 comments on commit 2687d66

Please sign in to comment.