diff --git a/packages/tdb-documents-ui/webpack.config.js b/packages/tdb-documents-ui/webpack.config.js index 90839486..7b1392ed 100644 --- a/packages/tdb-documents-ui/webpack.config.js +++ b/packages/tdb-documents-ui/webpack.config.js @@ -68,6 +68,26 @@ module.exports = { } ] } - ] - } + ]}, + externals: { + react: { + root: 'React', + commonjs2: 'react', + commonjs: 'react', + amd: 'react', + }, + 'react-dom': { + root: 'ReactDOM', + commonjs2: 'react-dom', + commonjs: 'react-dom', + amd: 'react-dom' + }, + 'prop-types': { + root: 'PropTypes', + commonjs2: 'prop-types', + commonjs: 'prop-types', + amd: 'prop-types', + } + }, + target: 'node' } diff --git a/packages/tdb-react-components/webpack.config.js b/packages/tdb-react-components/webpack.config.js index a900e873..eb12d1c6 100644 --- a/packages/tdb-react-components/webpack.config.js +++ b/packages/tdb-react-components/webpack.config.js @@ -71,31 +71,25 @@ module.exports = { } ] }, - /* externals: { - '@terminusdb/terminusdb-client': { - root: 'TerminusDBClient', - commonjs2: '@terminusdb/terminusdb-client', - commonjs: '@terminusdb/terminusdb-client', - amd: 'TerminusDBClient', + externals: { + react: { + root: 'React', + commonjs2: 'react', + commonjs: 'react', + amd: 'react', + }, + 'react-dom': { + root: 'ReactDOM', + commonjs2: 'react-dom', + commonjs: 'react-dom', + amd: 'react-dom' + }, + 'prop-types': { + root: 'PropTypes', + commonjs2: 'prop-types', + commonjs: 'prop-types', + amd: 'prop-types', + } }, - react: { - root: 'React', - commonjs2: 'react', - commonjs: 'react', - amd: 'react', - }, - 'react-dom': { - root: 'ReactDOM', - commonjs2: 'react-dom', - commonjs: 'react-dom', - amd: 'react-dom' - }, - 'prop-types': { - root: 'PropTypes', - commonjs2: 'prop-types', - commonjs: 'prop-types', - amd: 'prop-types', - } - },*/ - //target: 'node' + target: 'node' };