Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve npm modules from root app (area17#617)
Allow requiring node modules from the root project folder. Previously, custom Vue components could only use npm packages installed by Twill itself. With this change, any npm package from the main app can be required. We do this by adding the root `npm_modules` folder to webpack’s module resolver. Should be backwards-compatible since Twill’s `node_modules` folder still has preference. Default resolve order: `['node_modules']`. New resolve order: `['node_modules', '../../../node_modules']` Co-authored-by: Quentin Renard <[email protected]>
- Loading branch information