
Product
Introducing Repository Labels and Security Policies
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
laravel-mix-transpile-node-modules
Advanced tools
Laravel Mix extension for Babel-transpiling dependencies inside node_modules
Laravel Mix extension for Babel-transpiling dependencies inside node_modules
.
npm install laravel-mix-transpile-node-modules
Require the extension inside your webpack.mix.js
and call transpileNodeModules()
.
const mix = require('laravel-mix')
require('laravel-mix-transpile-node-modules')
mix.js('src/main.js', 'dist')
/**
* Transpile node_modules in production
*/
if (mix.inProduction()) {
mix.transpileNodeModules()
}
This is the default behavior. Same as passing true
.
mix.transpileNodeModules()
Pass an array of npm module names to transpile.
mix.transpileNodeModules(['swiper', 'dom7'])
Same as not calling the extension at all.
mix.transpileNodeModules(false)
[2.0.4] - 2022-04-18
FAQs
Laravel Mix extension for Babel-transpiling dependencies inside node_modules
The npm package laravel-mix-transpile-node-modules receives a total of 1,031 weekly downloads. As such, laravel-mix-transpile-node-modules popularity was classified as popular.
We found that laravel-mix-transpile-node-modules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
Research
Security News
Socket researchers uncovered malicious npm and PyPI packages that steal crypto wallet credentials using Google Analytics and Telegram for exfiltration.
Product
Socket now supports .NET, bringing supply chain security and SBOM accuracy to NuGet and MSBuild-powered C# projects.