Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Babel compile Bootstrap imports #2035

Merged
merged 17 commits into from Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2,864 changes: 1,479 additions & 1,385 deletions js/theme-bootstrap4.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/theme-bootstrap4.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/theme-bootstrap4.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/theme-bootstrap4.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions js/theme.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/theme.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/theme.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/theme.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/build/rollup.config.js
Expand Up @@ -14,6 +14,7 @@ const replace = require( '@rollup/plugin-replace' );
* Internal dependencies
*/
const banner = require( './banner.js' );
const babelConfig = require( './babel.config' );

// Determine if we want to build for Bootstrap v4 or v5.
const BS4 = process.argv[ process.argv.length - 1 ] === 'BS4';
Expand All @@ -39,6 +40,7 @@ const external = [ 'jquery' ];

const plugins = [
babel( {
presets: babelConfig.presets,
browserslistEnv: `bs${ bsVersion }`,
// Include the helpers in the bundle, at most one copy of each.
babelHelpers: 'bundled',
Expand Down