Skip to content

Commit 89392a7

Browse files
committed
Exporting css correctly
1 parent 1dd762c commit 89392a7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ let getStyleElement = () => {
102102

103103
let camelCase = (key) => key.replace(/(\-[a-z])/g, $1 => $1.toUpperCase().replace('-',''));
104104

105-
export default css;
105+
module.exports = css;

css-constructor.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/bundle.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
22
'use strict';
3-
Object.defineProperty(exports, '__esModule', { value: !0 });var _extends = Object.assign || function (target) {
3+
var _extends = Object.assign || function (target) {
44
for (var i = 1; i < arguments.length; i++) {
55
var source = arguments[i];for (var key in source) {
66
Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
@@ -60,7 +60,7 @@ Object.defineProperty(exports, '__esModule', { value: !0 });var _extends = Objec
6060
return a.replace(/(\-[a-z])/g, function (b) {
6161
return b.toUpperCase().replace('-', '');
6262
});
63-
};exports.default = css;
63+
};module.exports = css;
6464

6565
},{"react":180,"stylis":181}],2:[function(require,module,exports){
6666
'use strict';
@@ -95,7 +95,7 @@ var _dec, _desc, _value, _class;
9595
//import css from 'css-constructor'; // production - use this!
9696

9797

98-
var _templateObject = _taggedTemplateLiteral(['\n font-size: 16px;\n text-align: center;\n\n /* Use props in your CSS */\n color: {this.props.color};\n\n /* Pseudo selectors */\n &:hover {\n color: #FFF;\n }\n\n /* Nested elements */\n img {\n border-radius: 50%;\n }\n #handle {\n margin-top: 20px;\n }\n\n /* Media queries */\n @media (max-width: 600px) {\n & {font-size: 18px;}\n }\n '], ['\n font-size: 16px;\n text-align: center;\n\n /* Use props in your CSS */\n color: {this.props.color};\n\n /* Pseudo selectors */\n &:hover {\n color: #FFF;\n }\n\n /* Nested elements */\n img {\n border-radius: 50%;\n }\n #handle {\n margin-top: 20px;\n }\n\n /* Media queries */\n @media (max-width: 600px) {\n & {font-size: 18px;}\n }\n ']);
98+
var _templateObject = _taggedTemplateLiteral(['\n font-size: 16px;\n text-align: center;\n\n /* Use props in your CSS */\n color: {this.props.color};\n\n /* Adds vendor prefixes */\n display: flex;\n\n /* Pseudo selectors */\n &:hover {\n color: #FFF;\n }\n\n /* Nested elements */\n img {\n border-radius: 50%;\n }\n #handle {\n margin-top: 20px;\n }\n\n /* Media queries */\n @media (max-width: 600px) {\n & {font-size: 18px;}\n }\n '], ['\n font-size: 16px;\n text-align: center;\n\n /* Use props in your CSS */\n color: {this.props.color};\n\n /* Adds vendor prefixes */\n display: flex;\n\n /* Pseudo selectors */\n &:hover {\n color: #FFF;\n }\n\n /* Nested elements */\n img {\n border-radius: 50%;\n }\n #handle {\n margin-top: 20px;\n }\n\n /* Media queries */\n @media (max-width: 600px) {\n & {font-size: 18px;}\n }\n ']);
9999

100100
var _react = require('react');
101101

example/css-constructor.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)