{"id":16739296,"url":"https://github.com/olehdutchenko/babel-loader-exclude-node-modules-except","last_synced_at":"2025-03-17T01:32:07.490Z","repository":{"id":39745866,"uuid":"152768166","full_name":"OlehDutchenko/babel-loader-exclude-node-modules-except","owner":"OlehDutchenko","description":"Creating a regular expression for excluding node modules from transpiling except for individual modules","archived":false,"fork":false,"pushed_at":"2024-06-18T17:21:11.000Z","size":2975,"stargazers_count":19,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-14T00:49:51.963Z","etag":null,"topics":["babel-loader","es6-modules","exclude","js-tiny-module","node-modules","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OlehDutchenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-12T15:05:54.000Z","updated_at":"2024-06-13T00:05:05.000Z","dependencies_parsed_at":"2023-02-06T12:46:05.823Z","dependency_job_id":"91608254-689c-4a8e-89d8-c59c1479e59c","html_url":"https://github.com/OlehDutchenko/babel-loader-exclude-node-modules-except","commit_stats":null,"previous_names":["dutchenkooleg/babel-loader-exclude-node-modules-except"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OlehDutchenko%2Fbabel-loader-exclude-node-modules-except","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OlehDutchenko%2Fbabel-loader-exclude-node-modules-except/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OlehDutchenko%2Fbabel-loader-exclude-node-modules-except/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OlehDutchenko%2Fbabel-loader-exclude-node-modules-except/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OlehDutchenko","download_url":"https://codeload.github.com/OlehDutchenko/babel-loader-exclude-node-modules-except/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221670315,"owners_count":16861052,"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-loader","es6-modules","exclude","js-tiny-module","node-modules","webpack"],"created_at":"2024-10-13T00:49:58.774Z","updated_at":"2024-10-27T11:43:40.802Z","avatar_url":"https://github.com/OlehDutchenko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-loader-exclude-node-modules-except\n\n[![license](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/WezomAgency/babel-loader-exclude-node-modules-except/blob/master/LICENSE)\n[![npm](https://img.shields.io/badge/js--tiny-module-yellow.svg)](https://github.com/topics/js-tiny-module)\n[![npm](https://img.shields.io/badge/npm-install-orange.svg)](https://www.npmjs.com/package/babel-loader-exclude-node-modules-except)\n![Tests](https://github.com/dutchenkoOleg/babel-loader-exclude-node-modules-except/workflows/Tests/badge.svg)\n\n\n| Statements                  | Branches                | Functions                 | Lines                |\n| --------------------------- | ----------------------- | ------------------------- | -------------------- |\n| ![Statements](https://img.shields.io/badge/Coverage-100%25-brightgreen.svg) | ![Branches](https://img.shields.io/badge/Coverage-100%25-brightgreen.svg) | ![Functions](https://img.shields.io/badge/Coverage-100%25-brightgreen.svg) | ![Lines](https://img.shields.io/badge/Coverage-100%25-brightgreen.svg)    |\n\n\u003e Creating a regular expression for excluding node_modules  \n\u003e from babel transpiling except for individual modules\n\n\n### Usage\n\n```js\n// webpack.config.js\n\nconst babelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except');\n\nmodule.exports = {\n  // config properties\n  // ...\n  module: {\n    rules: [\n      {\n        test: /\\.js$/,\n        exclude: babelLoaderExcludeNodeModulesExcept([\n          // es6 modules from node_modules/\n          'custom-jquery-methods',\n          'swiper',\n          'dom7'\n        ]),\n        use: {\n          loader: 'babel-loader'\n        }\n      }\n    ]\n  }\n};\n\n```\n\n### Also, wildcards for matching are allowed, except names\n\n_Since v1.2.0_\n\n\n```js\n// webpack.config.js\n\nconst babelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except');\n\nmodule.exports = {\n  // config properties\n  // ...\n  module: {\n    rules: [\n      {\n        test: /\\.js$/,\n        exclude: babelLoaderExcludeNodeModulesExcept([\n          'react-*',\n          '@awesomecorp/*'\n        ]),\n        use: {\n          loader: 'babel-loader'\n        }\n      }\n    ]\n  }\n};\n\n```\n\n\n\n---\n\n#### Contributors 💪\n\n- April Arcus [@AprilArcus](https://github.com/AprilArcus)\n- Thordur Thordarson [@earthslasthope](https://github.com/earthslasthope)\n\n---\n\n#### License\n\n[MIT License](https://github.com/WezomAgency/babel-loader-exclude-node-modules-except/blob/master/LICENSE)\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folehdutchenko%2Fbabel-loader-exclude-node-modules-except","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folehdutchenko%2Fbabel-loader-exclude-node-modules-except","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folehdutchenko%2Fbabel-loader-exclude-node-modules-except/lists"}