Skip to content

Commit

Permalink
fix: bump swagger-ui-dist to 5.10
Browse files Browse the repository at this point in the history
Need to update Babel and Webpack configuration to properly load the latest versions of Swagger-ui-dist

https://gravitee.atlassian.net/browse/APIM-3401
gravitee-io/issues#9391
  • Loading branch information
gaetanmaisse committed Dec 6, 2023
1 parent 7759b8c commit 5d3cf3f
Show file tree
Hide file tree
Showing 7 changed files with 4,509 additions and 13,879 deletions.
15 changes: 1 addition & 14 deletions gravitee-apim-console-webui/babel.config.js
Expand Up @@ -14,18 +14,5 @@
* limitations under the License.
*/
module.exports = {
env: {
test: {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
},
},
presets: ['@babel/preset-env'],
};
5 changes: 5 additions & 0 deletions gravitee-apim-console-webui/conf/webpack-dist.conf.js
Expand Up @@ -71,6 +71,11 @@ module.exports = {
type: 'javascript/auto',
resolve: { mainFields: ['es2015', 'browser', 'module', 'main'] },
},
{
test: /\.js$/,
use: ['babel-loader'],
include: /node_modules\/swagger-ui-dist/,
},
{
test: /\.html$/i,
loader: 'html-loader',
Expand Down
5 changes: 5 additions & 0 deletions gravitee-apim-console-webui/conf/webpack.conf.js
Expand Up @@ -73,6 +73,11 @@ module.exports = {
use: ['ignore-loader'],
include: /node_modules\/codemirror/,
},
{
test: /\.js$/,
use: ['babel-loader'],
include: /node_modules\/swagger-ui-dist/,
},
{
test: /.html$/,
use: ['html-loader'],
Expand Down

0 comments on commit 5d3cf3f

Please sign in to comment.