Skip to content

Commit 180962a

Browse files
author
lttb
committed
Fix simple example
1 parent 4f20ecc commit 180962a

4 files changed

Lines changed: 7 additions & 1 deletion

File tree

examples/simple/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
presets: [
33
'react',
44
],
5+
plugins: [
6+
['transform-object-rest-spread', { useBuiltIns: true }],
7+
],
58
env: {
69
development: {
710
plugins: [

examples/simple/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import { render } from 'react-dom'
33

4-
import Styled from '../../lib'
4+
import Styled from '../../src'
55

66

77
const styled = Styled({

examples/simple/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"babel-loader": "^6.2.10",
20+
"babel-plugin-transform-object-rest-spread": "^6.23.0",
2021
"babel-preset-react": "^6.23.0",
2122
"html-webpack-plugin": "^2.28.0",
2223
"react-hot-loader": "^3.0.0-beta.6",

examples/simple/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const PORT = 3000
88
const PATHS = {
99
app: path.resolve(__dirname),
1010
build: path.resolve(__dirname, 'build'),
11+
jssStyled: path.resolve(__dirname, '../../src'),
1112
}
1213

1314
module.exports = {
@@ -23,6 +24,7 @@ module.exports = {
2324
test: /\.jsx?$/,
2425
include: [
2526
PATHS.app,
27+
PATHS.jssStyled,
2628
],
2729
use: [
2830
'babel-loader',

0 commit comments

Comments
 (0)