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;