hard-source-webpack-plugin
hard-source-webpack-plugin copied to clipboard
Dependency on jsonlint breaks electron-builder
Expected Behavior
Electron app using Webpack builds successfully
Actual Behavior
Running electron-builder
fails because of jsonlint
dependency, which has a dependency on JSV
which has broken "dependencies"
field causing electron-builder to freak out and crash.
I understand that it's more of a jsonlint/JSV issue, but JSV hasn't been updated in 7 years and is seemingly abandoned, it's probably not a good idea to depend on it anyways
Is an error being thrown?
⨯ nodeModules.Dependency.Dependencies: ReadMapCB: expect { or n, but found [, error found in #10 byte of ...|ncies" : [],
"main|..., bigger context ...|/garycourt/JSV.git"
}
],
"dependencies" : [],
"main" : "lib/jsv.js",
Steps to Reproduce
- Create an Electron app that uses this Webpack plugin. In my case it's an app built with with Electron Next and Next.js 7 which uses this plugin.
- Try building it with
electron-builder