Skip to content
Discussion options

You must be logged in to vote

@Probabilities Bad regex - /.node$/, use /\.node$/, because /.node$/.test('./mime-node') is true

I.E.:

 externals: [
        ({ context, request }, callback) => {
            if (/\.node$/.test(request)) {
                return callback(null, 'commonjs ' + request);
            }
            callback();
        },
    ],

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@Probabilities
Comment options

@alexander-akait
Comment options

Answer selected by Probabilities
@Probabilities
Comment options

@Probabilities
Comment options

@alexander-akait
Comment options

@Probabilities
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #19079 on December 18, 2024 16:02.