Skip to content

Commit

Permalink
feat: optimize commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
杨国璇 authored and 杨国璇 committed Oct 15, 2024
1 parent 3d448b0 commit d8142a1
Show file tree
Hide file tree
Showing 139 changed files with 611 additions and 484 deletions.
8 changes: 8 additions & 0 deletions frontend/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,14 @@ module.exports = function (webpackEnv) {
: isEnvDevelopment &&
(info => path.resolve(info.absoluteResourcePath).replace(/\\/g, '/')),
},
// externals: {
// 'video.js': isEnvProduction
// ? 'static/js/[name].[contenthash:8].chunk.js'
// : isEnvDevelopment && 'static/js/[name].chunk.js',
// '@seafile/sdoc-editor': isEnvProduction
// ? 'static/js/[name].[contenthash:8].chunk.js'
// : isEnvDevelopment && 'static/js/[name].chunk.js',
// },
// cache: {
// type: 'filesystem',
// version: createEnvironmentHash(env.raw),
Expand Down
161 changes: 64 additions & 97 deletions frontend/package-lock.json

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

13 changes: 6 additions & 7 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"@gatsbyjs/reach-router": "1.3.9",
"@seafile/react-image-lightbox": "3.0.0",
"@seafile/resumablejs": "1.1.16",
"@seafile/sdoc-editor": "1.0.99",
"@seafile/sdoc-editor": "^1.0.101",
"@seafile/seafile-calendar": "0.0.28",
"@seafile/seafile-editor": "^1.0.121",
"@seafile/sf-metadata-ui-component": "^0.0.43",
"@seafile/seafile-editor": "^1.0.122",
"@seafile/sf-metadata-ui-component": "^0.0.45",
"@uiw/codemirror-extensions-langs": "^4.19.4",
"@uiw/react-codemirror": "^4.19.4",
"axios": "^1.7.4",
Expand All @@ -31,17 +31,16 @@
"i18next-xhr-backend": "^3.1.2",
"is-hotkey": "0.2.0",
"MD5": "^1.3.0",
"moment": "^2.22.2",
"object-assign": "4.1.1",
"prop-types": "15.8.1",
"prop-types": "^15.8.1",
"qrcode.react": "^1.0.1",
"react": "17.0.0",
"react": "17.0.2",
"react-app-polyfill": "^2.0.0",
"react-chartjs-2": "^2.8.0",
"react-cookies": "^0.1.0",
"react-dnd": "^2.6.0",
"react-dnd-html5-backend": "^2.6.0",
"react-dom": "17.0.0",
"react-dom": "17.0.2",
"react-i18next": "^10.12.2",
"react-responsive": "9.0.2",
"react-select": "5.7.0",
Expand Down
Loading

0 comments on commit d8142a1

Please sign in to comment.