Closed kagawagao closed 5 years ago
firstly, thanks for your work, it’s a awesome dnd lib
but, we can do much better to make it benefit from bundle tools, ex: webpack/rollup.
webpack
rollup
so, I update the file structure and package field
new file structure:
| — src // source files || | — lib // commonjs build files || | —es // esnext build files || | — dist // umd build files || | — typings // typescript types
It generate three module types: ESNext/commonjs/UMD, so code can be readable for debug in development phase with webpack with sourceMap.
ESNext
commonjs
UMD
sourceMap
firstly, thanks for your work, it’s a awesome dnd lib
but, we can do much better to make it benefit from bundle tools, ex:
webpack
/rollup
.so, I update the file structure and package field
new file structure:
It generate three module types:
ESNext
/commonjs
/UMD
, so code can be readable for debug in development phase withwebpack
withsourceMap
.