Skip to content

Commit a530ed5

Browse files
committed
Put @wordpress/i18n in the externals list for webpack
1 parent 4a4fc8d commit a530ed5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,8 @@ module.exports = {
9999
filename: './css/[name].css',
100100
} ),
101101
],
102+
externals: {
103+
// Exclude WordPress core scripts and styles from the build.
104+
'@wordpress/i18n': [ 'wp', 'i18n' ],
105+
},
102106
};

0 commit comments

Comments
 (0)