Socket
Socket
Sign inDemoInstall

next-transpile-modules

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-transpile-modules - npm Package Compare versions

Comparing version 9.0.0 to 9.1.0

42

package.json
{
"name": "next-transpile-modules",
"version": "9.0.0",
"version": "9.1.0",
"license": "MIT",
"author": "Pierre de la Martinière <pierre.de.la.martiniere@gmail.com>",
"description": "Next.js plugin to transpile code from node_modules (supports TypeScript)",
"description": "Next.js plugin to transpile code from node_modules",
"main": "src/next-transpile-modules.js",

@@ -49,27 +49,27 @@ "files": [

"dependencies": {
"enhanced-resolve": "^5.7.0",
"enhanced-resolve": "^5.10.0",
"escalade": "^3.1.1"
},
"devDependencies": {
"@types/jest-environment-puppeteer": "4.4.1",
"eslint": "^7.18.0",
"eslint-config-prettier": "^7.2.0",
"eslint-config-semistandard": "^15.0.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.3",
"@types/jest-environment-puppeteer": "5.0.2",
"eslint": "^8.25.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-semistandard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-standard": "^5.0.0",
"fs-extra": "^9.1.0",
"jest": "^26.6.3",
"jest-environment-node": "^26.6.2",
"jest-environment-puppeteer": "^4.4.0",
"jest-puppeteer": "^4.4.0",
"prettier": "^2.2.1",
"prettier-eslint": "^12.0.0",
"puppeteer": "^5.5.0",
"rewire": "^4.0.1",
"typescript": "^3.9.7",
"webpack": "^4.44.0"
"fs-extra": "^10.1.0",
"jest": "^29.1.2",
"jest-environment-node": "^29.1.2",
"jest-environment-puppeteer": "^6.1.1",
"jest-puppeteer": "^6.1.1",
"prettier": "^2.7.1",
"prettier-eslint": "^15.0.1",
"puppeteer": "18.2.1",
"rewire": "^6.0.0",
"typescript": "^4.8.4",
"webpack": "^5.74.0"
}
}
# Next.js + Transpile `node_modules`
![Build Status](https://github.com/martpie/next-transpile-modules/workflows/tests/badge.svg)
![Dependencies](https://img.shields.io/david/martpie/next-transpile-modules)
[![sponsor: Creative Tim](https://img.shields.io/badge/sponsor-Creative%20Tim-blue)](https://creative-tim.com/?affiliate_id=140482)

@@ -37,3 +35,3 @@ Transpile modules from `node_modules` using the Next.js Babel configuration.

Latest Next.js version tested: **12.0.1**.
Last Next.js version tested: **12.1.6**.

@@ -113,2 +111,11 @@ ## Installation

If you need to install all packages of a certain scope (**it is highly discouraged**), you can do the following:
```js
const packageJSON = require('./package.json');
const transpiledPackages = Object.keys(packageJSON.dependencies).filter(it => it.includes('@shared/'));
const withTM = require('next-transpile-modules')(transpiledPackages);
```
### With `next-compose-plugins`:

@@ -115,0 +122,0 @@

@@ -11,2 +11,2 @@ export = withTmInitializer;

__unstable_matcher?: (path: string) => boolean;
}): (nextConfig?: {}) => {};
}): <T>(nextConfig?: T) => T;

@@ -87,2 +87,7 @@ /**

const withTmInitializer = (modules = [], options = {}) => {
/**
* @template T
* @param { T } nextConfig
* @returns { T | undefined }
*/
const withTM = (nextConfig = {}) => {

@@ -89,0 +94,0 @@ if (modules.length === 0) return nextConfig;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc