Skip to content

Commit

Permalink
Merge pull request #65 from timelessco/fix-storybook-build
Browse files Browse the repository at this point in the history
build: fixed broken storybook / build
  • Loading branch information
navin-moorthy committed Oct 1, 2020
2 parents 3d2976a + ebcc52d commit 5c61a3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"scripts": {
"build": "concurrently yarn:build:*",
"build-storybook": "build-storybook",
"build:commonjs": "rimraf ./dist/lib && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx ./src --out-dir dist/lib",
"build:es": "rimraf ./dist/es && babel --extensions .ts,.tsx ./src --out-dir dist/es",
"build:commonjs": "rimraf ./dist/lib && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx ./src --config-file ./babel-config.js --out-dir dist/lib",
"build:es": "rimraf ./dist/es && babel --extensions .ts,.tsx ./src --config-file ./babel-config.js --out-dir dist/es",
"build:types": "rimraf ./dist/types && tsc --emitDeclarationOnly",
"build:umd": "rimraf ./dist/umd && cross-env NODE_ENV=production rollup -c && rollup-plugin-visualizer stats-react.json",
"commit": "gacp",
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import resolve from "rollup-plugin-node-resolve";
import commonJS from "rollup-plugin-commonjs";
import visualizer from "rollup-plugin-visualizer";
import replace from "@rollup/plugin-replace";
const defaultBabelConfig = require("./babel-config");

const external = ["react", "react-dom"];

Expand All @@ -17,7 +18,7 @@ const globals = {
const inputSrc = "src/index.ts";

const extensions = [".js", ".jsx", ".es6", ".es", ".mjs", ".ts", ".tsx"];
const babelConfig = { extensions, runtimeHelpers: true };
const babelConfig = { extensions, runtimeHelpers: true, ...defaultBabelConfig };
const resolveConfig = { extensions, preferBuiltins: true };

export default [
Expand Down

0 comments on commit 5c61a3a

Please sign in to comment.