Skip to content

Commit

Permalink
chore(pnpm): BabelHelpers, back to bundling - FRONT-4693
Browse files Browse the repository at this point in the history
  • Loading branch information
planctus committed Dec 13, 2024
1 parent b834b6d commit 3427594
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
18 changes: 3 additions & 15 deletions src/tools/builder/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = (input, dest, options) => {

const inputOptions = {
input,
external: options.external || [/@babel\/runtime/],
external: options.external || [],
plugins: [
replace({
'getSystem()': JSON.stringify(getSystem()),
Expand All @@ -33,8 +33,7 @@ module.exports = (input, dest, options) => {
resolve(),
commonjs(),
babel({
plugins: ['@babel/plugin-transform-runtime'],
babelHelpers: 'runtime',
babelHelpers: 'bundled',
presets: [
[
babelPresetEnv,
Expand All @@ -56,18 +55,7 @@ module.exports = (input, dest, options) => {
name: options.name || options.moduleName,
sourcemap: options.sourcemap || options.sourceMap,
exports: 'named',
globals: options.globals || {
// Mapping @babel/runtime helpers to global variable names
'@babel/runtime/helpers/objectWithoutPropertiesLoose':
'_objectWithoutPropertiesLoose',
'@babel/runtime/helpers/extends': '_extends',
'@babel/runtime/helpers/asyncToGenerator': '_asyncToGenerator',
'@babel/runtime/regenerator': '_regeneratorRuntime',
'@babel/runtime/helpers/classPrivateFieldLooseBase':
'_classPrivateFieldLooseBase',
'@babel/runtime/helpers/classPrivateFieldLooseKey':
'_classPrivateFieldLooseKey',
},
globals: options.globals || {},
footer: `ECL.version = "${pkg.version}";`,
};

Expand Down
2 changes: 1 addition & 1 deletion src/website/src/pages/ec/utilities/layout/grid/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ title: Grid
defaultTab: usage
status: ready
playground:
system: eu
system: ec
path: /story/layout-grid--234612
---

0 comments on commit 3427594

Please sign in to comment.