Skip to content

Commit

Permalink
fix(bundle): fix bundling of css for lib-esm (stackblitz)
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Dec 2, 2017
1 parent 0a798a9 commit 39c641d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/statevis/StateVisualizer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { h, render, Component } from "preact";
import "./statevis.css";
import { StateSelector } from "../selector/StateSelector";
import { toggleClass, addClass } from "../util/toggleClass";
import { draggable, dragActions } from "../util/draggable";
Expand All @@ -10,6 +10,7 @@ import { DEFAULT_RENDERER, RENDERER_PRESETS } from "./renderers";
import { Renderer } from "./interface";

declare function require(string): string;
require("./statevis.css");

export interface IProps {
router;
Expand Down Expand Up @@ -121,7 +122,6 @@ export class StateVisualizer extends Component<IProps, IState> {

cancelAutoMinimize(ev) {
if (this.minimizeTimeout) {
console.log('aaaaaaaaaaaaaaaaaaaaaaaaaaay')
clearTimeout(this.minimizeTimeout);
this.minimizeTimeout = null;
}
Expand Down
4 changes: 3 additions & 1 deletion src/transition/transitionVisualizer.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { h, render, Component } from "preact";
import "./transitionVisualizer.css";

import {TransitionView} from "./transitionView";
import {easing} from "../util/easing";
import {animatePath} from "../util/animatepath";

declare var require;
require("./transitionVisualizer.css");

export interface IProps {
router: any;
maximumTransitions?: number;
Expand Down

0 comments on commit 39c641d

Please sign in to comment.