From e0572877ec76d60468b02a1bee80c18bb9e1bb72 Mon Sep 17 00:00:00 2001 From: Daybrush Date: Wed, 7 Aug 2019 10:49:23 +0900 Subject: [PATCH] fix: Fix esm config --- package.json | 2 +- rollup.config.js | 2 +- src/index.esm.ts | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 src/index.esm.ts diff --git a/package.json b/package.json index 80c57e510..232a0935c 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/rollup.config.js b/rollup.config.js index 85dd0c446..494cc1b3c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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", diff --git a/src/index.esm.ts b/src/index.esm.ts new file mode 100644 index 000000000..61d4fdb87 --- /dev/null +++ b/src/index.esm.ts @@ -0,0 +1,4 @@ +import Moveable from "./Moveable"; + +export { PROPERTIES, EVENTS } from "./consts"; +export default Moveable;