Skip to content

Commit f4d5735

Browse files
authored
fix(build): fix missing code fragments in build fragments (#2985)
Refs #7907
1 parent 31f0656 commit f4d5735

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

config/jest/jest.artifact.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ module.exports = {
44
rootDir: path.join(__dirname, '..', '..'),
55
testEnvironment: 'jsdom',
66
testMatch: ['**/test/build-artifacts/**/*.js'],
7+
transformIgnorePatterns: ['/node_modules/(?!(swagger-client|react-syntax-highlighter)/)'],
78
};

config/jest/jest.unit.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = {
55
testEnvironment: 'jsdom',
66
testMatch: ['**/test/unit/*.js', '**/test/unit/**/*.js'],
77
setupFilesAfterEnv: ['<rootDir>/test/unit/setup.js'],
8+
transformIgnorePatterns: ['/node_modules/(?!(swagger-client|react-syntax-highlighter)/)'],
89
testPathIgnorePatterns: [
910
'<rootDir>/node_modules/',
1011
'<rootDir>/test/build-artifacts/',

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"redux": "=4.1.2",
8888
"reselect": "^4.0.0",
8989
"swagger-client": "^3.18.4",
90-
"swagger-ui": "^4.6.2",
90+
"swagger-ui": "^4.9.0",
9191
"traverse": "^0.6.6",
9292
"validator": "=13.7.0",
9393
"yaml-js": "^0.3.1"

webpack/_config-builder.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ export default function buildConfig(
126126

127127
externals: includeDependencies
128128
? {
129-
// json-react-schema/deeper depends on buffertools, which fails.
130-
buffertools: true,
131-
esprima: true,
129+
esprima: "esprima",
132130
}
133131
: (context, request, cb) => {
134132
// webpack injects some stuff into the resulting file,
@@ -152,9 +150,10 @@ export default function buildConfig(
152150
"react-is": path.resolve(projectBasePath, "node_modules", "react-is"),
153151
"regenerator-runtime": path.resolve(projectBasePath, "node_modules", "@babel", "runtime-corejs3", "node_modules", "regenerator-runtime"),
154152
"reselect": path.resolve(projectBasePath, "node_modules", "reselect"),
155-
// this alias avoids bundling the React twice
156-
"swagger-ui": path.resolve(projectBasePath, "node_modules", "swagger-ui", "dist", "swagger-ui-es-bundle-core.js"),
157153
brace: path.resolve(projectBasePath, "node_modules", "brace"),
154+
"get-intrinsic": path.resolve(projectBasePath, "node_modules", "get-intrinsic"),
155+
"has-symbols": path.resolve(projectBasePath, "node_modules", "has-symbols"),
156+
tslib: path.resolve(projectBasePath, "node_modules", "autolinker", "node_modules", "tslib")
158157
},
159158
},
160159

0 commit comments

Comments
 (0)