Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(build): webpack@5 and webpack-dev-server@4 #7826

Merged
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f405b43
feat(build): support for webpack@5 with webpack-dev-server@4
tim-lai Jan 7, 2022
4050ac9
refactor(build): rename swagger-ui to swagger-ui-core
tim-lai Jan 20, 2022
02d6b70
fix(plugins): move export default statement
tim-lai Jan 20, 2022
4f22bef
refactor(build): delete removed webpack@5 serve flag --content-base
tim-lai Jan 21, 2022
b7094ae
refactor(build): move library.export out of config-builder
tim-lai Jan 21, 2022
15f5960
chore(package): update fields for esm exports
tim-lai Jan 28, 2022
c9b61a9
chore(deps-dev): bump postcss@4 to postcss@6
tim-lai Jan 28, 2022
87f168f
fix(build): restore babel commonjs node target
tim-lai Feb 2, 2022
afcfdc5
feat(build): es-bundle output as commonjs2
tim-lai Feb 2, 2022
223d943
refactor(build): build stylesheets first and restore core filename
tim-lai Feb 3, 2022
3253301
chore(build): restore dist/swagger-ui.js files
tim-lai Feb 3, 2022
01328c4
refactor(build): update swagger-ui-react script template
tim-lai Feb 3, 2022
1c76b03
Merge branch 'master' of github.com:swagger-api/swagger-ui into feat/…
tim-lai Feb 3, 2022
bbdc1f3
chore: update package-lock
tim-lai Feb 3, 2022
e5da416
chore(config): restore babel test node target
tim-lai Feb 3, 2022
af1b9fd
chore(dist): remove extraneous dist/esm
tim-lai Feb 3, 2022
04b0732
chore(deps-dev): bump webpack-cli and webpack-dev-server
tim-lai Feb 3, 2022
2e33951
Merge branch 'master' of github.com:swagger-api/swagger-ui into feat/…
tim-lai Feb 4, 2022
faeec61
chore(package): update exports and build script
tim-lai Feb 17, 2022
6fd9c1f
chore(babel): remove extraneous fallback and alias
tim-lai Feb 17, 2022
e8e8879
chore(package): fix variable build timing before rimraf
tim-lai Feb 17, 2022
2ec3cb3
chore(webpack): remove remove-files-webpack-plugin
tim-lai Feb 17, 2022
1aca937
chore(swagger-ui-react): update import and script
tim-lai Feb 17, 2022
82c6346
Merge branch 'master' of github.com:swagger-api/swagger-ui into feat/…
tim-lai Feb 17, 2022
91dff93
chore(dev): react-refresh-webpack-plugin
tim-lai Feb 23, 2022
49dcf3b
chore(dev): try htmlWebpackPlugin
tim-lai Feb 24, 2022
ad208e2
Merge branch 'master' of github.com:swagger-api/swagger-ui into feat/…
tim-lai Feb 24, 2022
4a923cf
chore(dev): use runtimeChunk single
tim-lai Feb 24, 2022
b0a97dd
chore(webpack): use assetModules
tim-lai Feb 28, 2022
d4f084a
Merge branch 'master' of github.com:swagger-api/swagger-ui into feat/…
tim-lai Feb 28, 2022
d39a010
chore(webpack): add HtmlWebpackSkipAssetsPlugin for dev.babel
tim-lai Mar 1, 2022
960f544
chore(webpack): remove unneeded font and html rules loaders
tim-lai Mar 1, 2022
b1fc7b9
chore(webpack): update dev-dependencies
tim-lai Mar 1, 2022
412af87
chore(webpack): use preferred library object for commonjs2
tim-lai Mar 1, 2022
c909006
Merge branch 'master' of github.com:swagger-api/swagger-ui into feat/…
tim-lai Mar 1, 2022
50570d1
chore(webpack): remove unused loaders for dev
tim-lai Mar 1, 2022
11169af
chore(deps): update package-lock
tim-lai Mar 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/swagger-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions flavors/swagger-ui-react/release/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ mkdir -p ../dist
# Copy UI's dist files to our directory
cp ../../../dist/swagger-ui.js ../dist
cp ../../../dist/swagger-ui.js.map ../dist
cp ../../../dist/swagger-ui-es-bundle.js ../dist
tim-lai marked this conversation as resolved.
Show resolved Hide resolved
cp ../../../dist/swagger-ui-es-bundle.js.map ../dist
cp ../../../dist/swagger-ui-es-bundle-core.js ../dist
cp ../../../dist/swagger-ui-es-bundle-core.js.map ../dist
cp ../../../dist/swagger-ui.css ../dist
cp ../../../dist/swagger-ui.css.map ../dist
tim-lai marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
7 changes: 7 additions & 0 deletions flavors/swagger-ui-react/release/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
"name": "swagger-ui-react",
"main": "commonjs.js",
"module": "index.js",
"exports": {
tim-lai marked this conversation as resolved.
Show resolved Hide resolved
"./swagger-ui.css": "./swagger-ui.css",
".": {
"import": "./index.js",
"require": "./commonjs.js"
}
},
"repository": "[email protected]:swagger-api/swagger-ui.git",
"contributors": [
"(in alphabetical order)",
Expand Down
Loading