Skip to content

Commit

Permalink
fix: Fix esm config
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Aug 7, 2019
1 parent 584cc5d commit e057287
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moveable",
"version": "0.6.3",
"version": "0.6.4",
"description": "Moveable is Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable.",
"main": "./dist/moveable.cjs.js",
"module": "./dist/moveable.esm.js",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default builder([
uglify: true,
},
{
input: "src/index.umd.ts",
input: "src/index.esm.ts",
output: "./dist/moveable.esm.js",
exports: "named",
format: "es",
Expand Down
4 changes: 4 additions & 0 deletions src/index.esm.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Moveable from "./Moveable";

export { PROPERTIES, EVENTS } from "./consts";
export default Moveable;

0 comments on commit e057287

Please sign in to comment.