Skip to content

Commit

Permalink
Fix rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
emeeks committed Mar 21, 2019
1 parent 6f77375 commit 7e35c92
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
28 changes: 21 additions & 7 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ export default {
plugins: [
typescript(),
node({ jsnext: true, preferBuiltins: false }),
babel({
babelrc: false,
runtimeHelpers: true,
presets: ["@babel/react"],
plugins: ["@babel/external-helpers"]
}),
nodent({ includeruntime: true, sourcemap: false }),
builtins(),
commonjs({
include: "node_modules/**",
Expand All @@ -44,6 +37,27 @@ export default {
]
}
}),
babel({
babelrc: false,
runtimeHelpers: true,
presets: [
"@babel/react",
[
"@babel/preset-env",
{
modules: false
}
]
],
plugins: [
["@babel/plugin-proposal-class-properties"],
"@babel/external-helpers",
["@babel/plugin-proposal-decorators", { legacy: true }],
"@babel/plugin-transform-object-assign",
"react-require"
]
}),
nodent({ includeruntime: true, sourcemap: false }),
replace({
"process.env.NODE_ENV": '"production"'
})
Expand Down
2 changes: 1 addition & 1 deletion src/components/AnnotationLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { bumpAnnotations } from "./annotationLayerBehavior/annotationHandling"

import Legend from "./Legend"
import Annotation from "./Annotation"
import labella from "labella"
import * as labella from "labella"
import SpanOrDiv from "./SpanOrDiv"
import {
AnnotationHandling,
Expand Down
4 changes: 3 additions & 1 deletion src/components/VisualizationLayer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react"

import { RoughCanvas } from "roughjs-es5/lib/canvas"
import * as Rough from "roughjs-es5/lib/canvas"

import { chuckCloseCanvasTransform } from "./canvas/basicCanvasEffects"

Expand All @@ -10,6 +10,8 @@ import {
VizLayerTypes
} from "./types/generalTypes"

const RoughCanvas = Rough.RoughCanvas

type Props = {
axes?: Array<React.ReactNode>
frameKey?: string
Expand Down

0 comments on commit 7e35c92

Please sign in to comment.