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
  • Loading branch information
gaetanmaisse committed Nov 27, 2023
1 parent 088a88c commit c39fb9b
Show file tree
Hide file tree
Showing 7 changed files with 6,477 additions and 12,561 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 c39fb9b

Please sign in to comment.