Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: Maximum call stack size exceeded #159

Closed
ermuz opened this issue Feb 8, 2021 · 0 comments
Closed

RangeError: Maximum call stack size exceeded #159

ermuz opened this issue Feb 8, 2021 · 0 comments

Comments

@ermuz
Copy link

ermuz commented Feb 8, 2021

vue.config.js
`
const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');

const smp = new SpeedMeasurePlugin({
granularLoaderData: true
})

...

smp.warp(config)
`

then run build,i got the RangEorror:Maximum call stack size exceeded

the position is in smp/utils.js file,and the function is hackWrapLoaders which overrided the origin require.

it was weird that when i build in a simple demo, i could got the built successfully.

BTW,the getLoaderName which in smp/loader.js file, if argument is a pass custom loader path which is not in node_modules dir, the //node_modules/([^\/]+)/ couldn't match, then just return empty string.I think the RegExphttps://github.com/stephencookdev/speed-measure-webpack-plugin/blob/b5ff09e699416fe336d1df1896af5c50e6596deb/utils.js#L57 could match.

@ermuz ermuz closed this as completed Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant