Skip to content

Commit

Permalink
Remove: WordPress upload media mocks and alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Feb 7, 2025
1 parent 285be1a commit bb2c7d0
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 24 deletions.
3 changes: 0 additions & 3 deletions apps/blaze-dashboard/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ module.exports = {
extensions: [ '.json', '.js', '.jsx', '.ts', '.tsx' ],
mainFields: [ 'browser', 'calypso:src', 'module', 'main' ],
conditionNames: [ 'calypso:src', 'import', 'module', 'require' ],
alias: {
'@wordpress/upload-media': false,
},
},
node: false,
plugins: [
Expand Down
3 changes: 0 additions & 3 deletions apps/odyssey-stats/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ module.exports = {
extensions: [ '.json', '.js', '.jsx', '.ts', '.tsx' ],
mainFields: [ 'browser', 'calypso:src', 'module', 'main' ],
conditionNames: [ 'calypso:src', 'import', 'module', 'require' ],
alias: {
'@wordpress/upload-media': false,
},
},
node: false,
plugins: [
Expand Down
4 changes: 0 additions & 4 deletions client/__mocks__/upload-media.js

This file was deleted.

1 change: 0 additions & 1 deletion client/webpack.config.desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ module.exports = {
// Alias calypso to ./client. This allows for smaller bundles, as it ensures that
// importing `./client/file.js` is the same thing than importing `calypso/file.js`
calypso: __dirname,
'@wordpress/upload-media': false,
},
},
plugins: [
Expand Down
1 change: 0 additions & 1 deletion client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ const webpackConfig = {
calypso: __dirname,

util: findPackage( 'util/' ), //Trailing `/` stops node from resolving it to the built-in module
'@wordpress/upload-media': false,
} ),
fallback: {
stream: require.resolve( 'stream-browserify' ),
Expand Down
1 change: 0 additions & 1 deletion client/webpack.config.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ const webpackConfig = {
conditionNames: [ 'calypso:src', 'import', 'module', 'require' ],
alias: {
'@automattic/calypso-config': 'calypso/server/config',
'@wordpress/upload-media': false,
},
},
node: {
Expand Down
3 changes: 0 additions & 3 deletions packages/calypso-build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ function getWebpackConfig(
fallback: {
stream: require.resolve( 'stream-browserify' ),
},
alias: {
'@wordpress/upload-media': false,
},
},
node: false,
plugins: [
Expand Down
3 changes: 0 additions & 3 deletions packages/page-pattern-modal/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ module.exports = {
configData: {},
},
transformIgnorePatterns: [ 'node_modules/(?!gridicons)(?!.*\\.svg)' ],
moduleNameMapper: {
'^@wordpress/upload-media$': '<rootDir>/src/__mocks__/index.js',
},
};
4 changes: 0 additions & 4 deletions packages/page-pattern-modal/src/__mocks__/index.js

This file was deleted.

1 change: 0 additions & 1 deletion test/client/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = {
moduleNameMapper: {
'^@automattic/calypso-config$': '<rootDir>/server/config/index.js',
'react-markdown': '<rootDir>/node_modules/react-markdown/react-markdown.min.js',
'^@wordpress/upload-media$': '<rootDir>/__mocks__/upload-media.js',
},
transformIgnorePatterns: [
'node_modules[\\/\\\\](?!.*\\.(?:gif|jpg|jpeg|png|svg|scss|sass|css)$)',
Expand Down

0 comments on commit bb2c7d0

Please sign in to comment.