mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-29 03:53:43 +03:00
parent
cbfc226fa9
commit
6473e6269c
|
@ -106,6 +106,7 @@
|
|||
"shelljs": "^0.8.1",
|
||||
"source-map-loader": "^0.2.1",
|
||||
"style-loader": "^0.21.0",
|
||||
"swagger2openapi": "^3.2.8",
|
||||
"ts-jest": "^23.0.0",
|
||||
"ts-loader": "4.4.2",
|
||||
"ts-node": "^7.0.0",
|
||||
|
@ -147,7 +148,6 @@
|
|||
"slugify": "^1.2.1",
|
||||
"stickyfill": "^1.1.1",
|
||||
"styled-components": "^3.3.3",
|
||||
"swagger2openapi": "^3.2.8",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"resolutions": {
|
||||
|
|
|
@ -6,7 +6,14 @@ import * as path from 'path';
|
|||
|
||||
const nodeExternals = require('webpack-node-externals')({
|
||||
// bundle in moudules that need transpiling + non-js (e.g. css)
|
||||
whitelist: ['swagger2openapi', /reftools/, /\.(?!(?:jsx?|json)$).{1,5}$/i],
|
||||
whitelist: [
|
||||
'swagger2openapi',
|
||||
/reftools/,
|
||||
'oas-resolver',
|
||||
'oas-kit-common',
|
||||
'oas-schema-walker',
|
||||
/\.(?!(?:jsx?|json)$).{1,5}$/i,
|
||||
],
|
||||
});
|
||||
|
||||
const VERSION = JSON.stringify(require('./package.json').version);
|
||||
|
@ -99,7 +106,7 @@ export default (env: { standalone?: boolean } = {}, { mode }) => ({
|
|||
exclude: ['node_modules'],
|
||||
},
|
||||
{
|
||||
test: /node_modules\/(swagger2openapi|reftools)\/.*\.js$/,
|
||||
test: /node_modules\/(swagger2openapi|reftools|oas-resolver|oas-kit-common|oas-schema-walker)\/.*\.js$/,
|
||||
use: {
|
||||
loader: 'ts-loader',
|
||||
options: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user