Skip to content

Commit

Permalink
MU WPCOM: Load built version wpcom-sidebar-notice.js (#38479)
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar authored Jul 24, 2024
1 parent 7794cf4 commit 450c718
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

MU WPCOM: Load built version of wpcom-sidebar-notice.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* global wp, wpcomSidebarNotice */
import { wpcomTrackEvent } from '../../common/tracks';

import './wpcom-sidebar-notice.scss';

const wpcomSidebarNoticeRecordEvent = event => {
if ( ! event ) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
function wpcom_enqueue_sidebar_notice_assets() {
wp_enqueue_script(
'wpcom-sidebar-notice',
plugins_url( 'wpcom-sidebar-notice.js', __FILE__ ),
plugins_url( 'build/wpcom-sidebar-notice/wpcom-sidebar-notice.js', Jetpack_Mu_Wpcom::BASE_FILE ),
array(),
Jetpack_Mu_Wpcom::PACKAGE_VERSION,
array(
Expand Down
2 changes: 1 addition & 1 deletion projects/packages/jetpack-mu-wpcom/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = [
'./src/features/wpcom-global-styles/wpcom-global-styles-view.js',
'wpcom-documentation-links':
'./src/features/wpcom-documentation-links/wpcom-documentation-links.ts',
'wpcom-sidebar-notice': './src/features/wpcom-sidebar-notice/wpcom-sidebar-notice.scss',
'wpcom-sidebar-notice': './src/features/wpcom-sidebar-notice/wpcom-sidebar-notice.js',
},
mode: jetpackWebpackConfig.mode,
devtool: jetpackWebpackConfig.devtool,
Expand Down

0 comments on commit 450c718

Please sign in to comment.