{"id":17275097,"url":"https://github.com/daun/laravel-mix-transpile-node-modules","last_synced_at":"2025-04-14T09:12:09.705Z","repository":{"id":55975610,"uuid":"282215282","full_name":"daun/laravel-mix-transpile-node-modules","owner":"daun","description":"Laravel Mix extension for Babel-transpiling dependencies inside node_modules","archived":false,"fork":false,"pushed_at":"2022-04-18T11:19:53.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T09:11:45.342Z","etag":null,"topics":["babel","laravel-mix","laravel-mix-plugin","transpilation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daun.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-24T12:33:15.000Z","updated_at":"2023-07-27T13:33:57.000Z","dependencies_parsed_at":"2022-08-15T10:40:29.426Z","dependency_job_id":null,"html_url":"https://github.com/daun/laravel-mix-transpile-node-modules","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Flaravel-mix-transpile-node-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Flaravel-mix-transpile-node-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Flaravel-mix-transpile-node-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Flaravel-mix-transpile-node-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daun","download_url":"https://codeload.github.com/daun/laravel-mix-transpile-node-modules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248852182,"owners_count":21171842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","laravel-mix","laravel-mix-plugin","transpilation"],"created_at":"2024-10-15T08:55:25.568Z","updated_at":"2025-04-14T09:12:09.666Z","avatar_url":"https://github.com/daun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Mix Transpile Node Modules\n\n[![Software License](https://img.shields.io/npm/l/laravel-mix-transpile-node-modules.svg)](LICENSE)\n[![Latest Version on NPM](https://img.shields.io/npm/v/laravel-mix-transpile-node-modules.svg)](https://npmjs.com/package/laravel-mix-transpile-node-modules)\n\n[Laravel Mix](https://github.com/JeffreyWay/laravel-mix) extension for Babel-transpiling dependencies inside `node_modules`.\n\n## Installation\n\n```bash\nnpm install laravel-mix-transpile-node-modules\n```\n\n## Usage\n\nRequire the extension inside your `webpack.mix.js` and call `transpileNodeModules()`.\n\n```js\nconst mix = require('laravel-mix')\nrequire('laravel-mix-transpile-node-modules')\n\nmix.js('src/main.js', 'dist')\n\n/**\n * Transpile node_modules in production\n */\nif (mix.inProduction()) {\n  mix.transpileNodeModules()\n}\n```\n\n## Options\n\n### Transpile all node modules\n\nThis is the default behavior. Same as passing `true`.\n\n```js\nmix.transpileNodeModules()\n```\n\n### Transpile selected node modules\n\nPass an array of npm module names to transpile.\n\n```js\nmix.transpileNodeModules(['swiper', 'dom7'])\n```\n\n### Don't transpile node modules\n\nSame as not calling the extension at all.\n\n```js\nmix.transpileNodeModules(false)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Flaravel-mix-transpile-node-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaun%2Flaravel-mix-transpile-node-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Flaravel-mix-transpile-node-modules/lists"}