# node4-module-paths **Repository Path**: mirrors_stevemao/node4-module-paths ## Basic Information - **Project Name**: node4-module-paths - **Description**: Get all paths of modules targeting node v4 and later in your node_modules folder - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Synopsis A lot of node modules are only targeting node v4 and up. But it doesn't play well with webpack since 1) plugins like uglify doesn't support ES6 yet and 2) ES6 browser support isn't great yet. # Usage ```js const path = require('path') const node4ModulePaths = require('node4-module-paths') // Then in some async function const es6ModulePaths = await node4ModulePaths(); { test: /\.js$/, include: [ ...es6ModulePaths, path.resolve(__dirname, 'src'), ], use: 'babel-loader', } ``` # CLI ``` npm i -g node4-module-paths node4-module-paths ``` Use the command to inspect your project.