Problems to build plugin with new node js version

I installed a new Node version on my PC (Windows 11) and got build errors for my new plugin.

The following entry in webpack.config helped me to overcome this problem:
(The windowsPathsNoEscape: true was added)

function createPluginArchive(sourceDir, destPath) {
	const distFiles = glob.sync(`${sourceDir}/**/*`, { nodir: true, windowsPathsNoEscape: true })
		.map(f => f.substr(sourceDir.length + 1));

Maybe this is of interest !

4 Likes

It is. Thanks! :heart: