From 7dba9095b26906813458cb48881e94df50cd3fa2 Mon Sep 17 00:00:00 2001 From: Pieterjan Van Saet Date: Thu, 13 Jan 2022 13:44:08 +0100 Subject: [PATCH] fix: build --- package.json | 2 +- packages/calendar/src/Datepicker/Body.js | 2 +- packages/form/src/Datepicker/Datepicker.js | 2 +- packages/table/rollup.config.js | 28 +++++++++++----------- packages/table/src/Table.js | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 46889be0..75db2511 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "dependencies": { "@a-ui/core": "^5.0.0", "classnames": "~2.2.6", - "moment": "^2.24.0", + "moment": "^2.29.1", "react-input-mask": "^2.0.4", "react-modal": "~3.5.1", "rxjs": "^6.6.2" diff --git a/packages/calendar/src/Datepicker/Body.js b/packages/calendar/src/Datepicker/Body.js index 2dfc7599..79e76973 100644 --- a/packages/calendar/src/Datepicker/Body.js +++ b/packages/calendar/src/Datepicker/Body.js @@ -131,4 +131,4 @@ class Body extends Component { ) } } -export default Body; \ No newline at end of file +export default Body; diff --git a/packages/form/src/Datepicker/Datepicker.js b/packages/form/src/Datepicker/Datepicker.js index 342ddfd0..0423b7dc 100644 --- a/packages/form/src/Datepicker/Datepicker.js +++ b/packages/form/src/Datepicker/Datepicker.js @@ -104,7 +104,7 @@ class Datepicker extends Component { if (this.datepicker && this.datepicker.contains(e.target)) { return; } - + this.setState({ open: false }); }; diff --git a/packages/table/rollup.config.js b/packages/table/rollup.config.js index 3dc4393f..b941da8b 100644 --- a/packages/table/rollup.config.js +++ b/packages/table/rollup.config.js @@ -1,22 +1,22 @@ - - import resolve from '@rollup/plugin-node-resolve'; import babel from '@rollup/plugin-babel'; import pkg from './package.json'; +import sass from 'rollup-plugin-sass'; export default { - input: 'src/index.js', - output: [ - { file: pkg.main, format: 'cjs' }, - { file: pkg.module, format: 'es' } - ], - plugins: [ - resolve(), - babel({ + input: 'src/index.js', + output: [ + {file: pkg.main, format: 'cjs'}, + {file: pkg.module, format: 'es'} + ], + plugins: [ + resolve(), + sass({ insert: true }), + babel({ babelHelpers: 'bundled', - exclude: ['node_modules/**'], + exclude: ['node_modules/**'], configFile: "../../babel.config.js" - }) - ], - external: ['react', 'classnames'], + }) + ], + external: ['react', 'react-dom', 'classnames', 'react-input-mask'], }; diff --git a/packages/table/src/Table.js b/packages/table/src/Table.js index 78c38d28..f893f2ca 100644 --- a/packages/table/src/Table.js +++ b/packages/table/src/Table.js @@ -1,7 +1,7 @@ // @flow import React, { Fragment, useState } from 'react'; import classnames from 'classnames'; -import get from 'lodash.get'; +import * as get from 'lodash.get'; import TableLoader from './components/TableLoader'; import TableHeader from './components/TableHeader';