Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
make it clear where error is coming from
  • Loading branch information
chrisbreiding committed Apr 3, 2020
commit f3afccd92f3fc343f951b181490c641a50d34e45
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ const getBrowserifyOptions = (entry, userBrowserifyOptions = {}, typescriptPath
if (hasTsifyTransform || hastsifyPlugin) {
const type = hasTsifyTransform ? 'transform' : 'plugin'

throw new Error(`It looks like you passed the 'typescript' option and also specified a browserify ${type} for TypeScript. This may cause conflicts.
throw new Error(`Error running @cypress/browserify-preprocessor:

It looks like you passed the 'typescript' option and also specified a browserify ${type} for TypeScript. This may cause conflicts.

Please do one of the following:

1) Pass in the 'typescript' option and omit the browserify ${type} (Recommmended)
2) Omit the 'typescript' option and continue to use your own browserify ${type}
1) Pass in the 'typescript' option and omit the browserify ${type} (Recommmended)
2) Omit the 'typescript' option and continue to use your own browserify ${type}
`)
}

Expand Down