Skip to content

Commit c7475b4

Browse files
fix: add babel/runtime as dependency to all packages (#482)
1 parent d12d0f0 commit c7475b4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/charts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"build": "rollup -c rollup.config.js"
2222
},
2323
"dependencies": {
24+
"@babel/runtime": "7.9.0",
2425
"chart.js": "^2.9.3",
2526
"chartjs-plugin-datalabels": "^0.7.0",
2627
"get-best-contrast-color": "^0.3.1",

packages/main/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"build:i18n-imports": "mkdirp json-imports && node ../../scripts/generate-json-imports/i18n.js"
2929
},
3030
"dependencies": {
31+
"@babel/runtime": "7.9.0",
3132
"@ui5/webcomponents-react-base": "^0.9.2",
3233
"lodash.debounce": "^4.0.8",
3334
"react-content-loader": "^5.0.4",

scripts/rollup/bundles.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ const bundles = [
88
label: 'main',
99
bundleTypes: [bundleTypes.NODE_DEV, bundleTypes.NODE_PROD],
1010
entry: 'main',
11-
externals: ['@ui5/webcomponents-react', '@ui5/webcomponents-base', '@babel/runtime']
11+
externals: ['@ui5/webcomponents-react', '@ui5/webcomponents-base']
1212
},
1313
{
1414
label: 'base',
1515
bundleTypes: [bundleTypes.NODE_DEV, bundleTypes.NODE_PROD],
1616
entry: 'base',
17-
externals: ['@ui5/webcomponents-react-base', '@ui5/webcomponents-base', '@babel/runtime']
17+
externals: ['@ui5/webcomponents-react-base', '@ui5/webcomponents-base']
1818
},
1919
{
2020
label: 'charts',
2121
bundleTypes: [bundleTypes.NODE_DEV, bundleTypes.NODE_PROD],
2222
entry: 'charts',
23-
externals: ['@ui5/webcomponents-react-charts', '@ui5/webcomponents', '@ui5/webcomponents-base', '@babel/runtime']
23+
externals: ['@ui5/webcomponents-react-charts', '@ui5/webcomponents', '@ui5/webcomponents-base']
2424
}
2525
];
2626

2727
// Copied from facebook/react build setup
2828
// Based on deep-freeze by substack (public domain)
2929
function deepFreeze(o) {
3030
Object.freeze(o);
31-
Object.getOwnPropertyNames(o).forEach(function(prop) {
31+
Object.getOwnPropertyNames(o).forEach(function (prop) {
3232
if (
3333
o[prop] !== null &&
3434
(typeof o[prop] === 'object' || typeof o[prop] === 'function') &&

shared/rollup/configFactory.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ const rollupConfigFactory = (pkgName, externals = []) => {
3232
extensions: ['.js', '.jsx', '.ts', '.tsx'],
3333
babelHelpers: 'runtime',
3434
configFile: path.resolve(PATHS.root, 'babel.config.json')
35-
3635
})
3736
];
3837

@@ -42,7 +41,6 @@ const rollupConfigFactory = (pkgName, externals = []) => {
4241
'react',
4342
'react-dom',
4443
'react-jss',
45-
'@babel/runtime',
4644
packageJson.name,
4745
...Object.keys(packageJson.dependencies || {}),
4846
...Object.keys(packageJson.peerDependencies || {}),

0 commit comments

Comments
 (0)