Skip to content

Commit

Permalink
Merge pull request #7240 from p12tic/www-dont-duplicate-mobx-react
Browse files Browse the repository at this point in the history
www: Don't include multiple copies of mobx-react
  • Loading branch information
p12tic committed Dec 4, 2023
2 parents ce7ea0a + dae3e4f commit 305ed0e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/react-base/src/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import axios from 'axios';
import * as mobx from 'mobx';
import * as mobxReact from 'mobx-react';
import moment from 'moment';
import React from 'react';
import ReactDOM from 'react-dom';
Expand All @@ -14,6 +15,7 @@ declare global {
interface Window {
axios: any;
mobx: any;
mobxReact: any;
React: any;
ReactRouterDOM: any;
jQuery: any;
Expand All @@ -24,6 +26,7 @@ declare global {

window.axios = axios;
window.mobx = mobx;
window.mobxReact = mobxReact;
window.moment = moment;
window.React = React;
window.ReactDOM = ReactDOM as any;
Expand Down
1 change: 1 addition & 0 deletions www/react-base/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export default defineConfig({
dedupe: [
'axios',
'mobx',
'mobx-react',
'moment',
'react',
'react-dom',
Expand Down
2 changes: 2 additions & 0 deletions www/react-console_view/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default defineConfig({
'buildbot-plugin-support',
'buildbot-ui',
'mobx',
'mobx-react',
'moment',
'react',
'react-dom',
Expand All @@ -45,6 +46,7 @@ export default defineConfig({
"buildbot-plugin-support": "BuildbotPluginSupport",
"buildbot-ui": "BuildbotUi",
mobx: "mobx",
"mobx-react": "mobxReact",
react: "React",
moment: "moment",
"react-dom": "ReactDOM",
Expand Down
2 changes: 2 additions & 0 deletions www/react-grid_view/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default defineConfig({
'buildbot-data-js',
'buildbot-ui',
'mobx',
'mobx-react',
'moment',
'react',
'react-dom',
Expand All @@ -46,6 +47,7 @@ export default defineConfig({
"buildbot-plugin-support": "BuildbotPluginSupport",
"buildbot-ui": "BuildbotUi",
mobx: "mobx",
"mobx-react": "mobxReact",
react: "React",
moment: "moment",
"react-dom": "ReactDOM",
Expand Down
2 changes: 2 additions & 0 deletions www/react-ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default defineConfig({
'axios',
'buildbot-data-js',
'mobx',
'mobx-react',
'moment',
'react',
'react-dom',
Expand All @@ -46,6 +47,7 @@ export default defineConfig({
axios: "axios",
"buildbot-data-js": "BuildbotDataJs",
mobx: "mobx",
"mobx-react": "mobxReact",
react: "React",
moment: "moment",
"react-dom": "ReactDOM",
Expand Down
2 changes: 2 additions & 0 deletions www/react-waterfall_view/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default defineConfig({
'buildbot-plugin-support',
'buildbot-ui',
'mobx',
'mobx-react',
'moment',
'react',
'react-dom',
Expand All @@ -45,6 +46,7 @@ export default defineConfig({
"buildbot-plugin-support": "BuildbotPluginSupport",
"buildbot-ui": "BuildbotUi",
mobx: "mobx",
"mobx-react": "mobxReact",
react: "React",
moment: "moment",
"react-dom": "ReactDOM",
Expand Down

0 comments on commit 305ed0e

Please sign in to comment.