Commit f06e83f4 authored by Jean Rabreau's avatar Jean Rabreau
Browse files

️date-fns: fp remove to allow tree-shaking

parent 16e21cae
{
"name": "@vue-unistra/unistra-formbuilder",
"version": "2.0.16-test",
"version": "2.0.17-test",
"main": "dist/index.js",
"files": [
"dist/*",
......
......@@ -52,7 +52,7 @@
</template>
<script>
import { add, format } from 'date-fns/fp';
import { add, format } from 'date-fns';
import {
usfFieldMixin,
......@@ -111,7 +111,7 @@ export default {
if (delta && unit) {
const duration = {};
duration[unit] = delta;
return format('yyyy-MM-dd')(add(duration)(new Date()));
return format(add(new Date(), duration), 'yyyy-MM-dd');
}
return undefined;
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment