Skip to content

Commit

Permalink
Additional fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthemanuel committed Nov 9, 2022
1 parent efd0af7 commit 8e22bad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion npm/webpack-preprocessor/index.ts
Expand Up @@ -249,7 +249,7 @@ const preprocessor: WebpackPreprocessor = (options: PreprocessorOptions = {}): F
webpackOptions.module.rules.unshift({
test: /\.(js|ts|jsx|tsx)$/,
use: [{
loader: path.join(__dirname, 'lib/cross-origin-callback-loader'),
loader: require.resolve('@cypress/webpack-preprocessor/dist/lib/cross-origin-callback-loader.js'),
options: {
commands: callbackReplacementCommands,
},
Expand Down
1 change: 1 addition & 0 deletions npm/webpack-preprocessor/package.json
Expand Up @@ -20,6 +20,7 @@
"watch": "rimraf dist && tsc --watch"
},
"dependencies": {
"@babel/parser": "7.13.0",
"bluebird": "3.7.1",
"debug": "^4.3.2",
"fs-extra": "^10.1.0",
Expand Down
2 changes: 2 additions & 0 deletions scripts/binary/binary-cleanup.js
Expand Up @@ -52,6 +52,8 @@ const getDependencyPathsToKeep = async (buildAppDir) => {
require.resolve('webpack-dev-server', { paths: [buildAppDir] }),
require.resolve('html-webpack-plugin-4', { paths: [buildAppDir] }),
require.resolve('html-webpack-plugin-5', { paths: [buildAppDir] }),
// This is a dynamic import swizzle that needs to happen in the reporter
require.resolve('mocha-7.0.1', { paths: [buildAppDir] }),
// These dependencies are completely dynamic using the pattern `require(`./${name}`)` and will not be pulled in by esbuild but still need to be kept in the binary.
...['ibmi',
'sunos',
Expand Down

0 comments on commit 8e22bad

Please sign in to comment.