Skip to content

Commit

Permalink
Update message match
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Feb 20, 2023
1 parent 6281323 commit 4090c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/rollup/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ async function createBundle(bundle, bundleType) {

function handleRollupWarning(warning) {
if (warning.code === 'UNUSED_EXTERNAL_IMPORT') {
const match = warning.message.match(/external module '([^']+)'/);
const match = warning.message.match(/external module "([^"]+)"/);
if (!match || typeof match[1] !== 'string') {
throw new Error(
'Could not parse a Rollup warning. ' + 'Fix this method.'
Expand Down

0 comments on commit 4090c9d

Please sign in to comment.