Socket
Book a DemoInstallSign in
Socket

next-plugin-transpile-modules

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-plugin-transpile-modules

Transpile untranspiled modules from your `node_modules`. Makes it easy to have local libraries and keep a slick, manageable dev experience.

0.1.1
Source
npmnpm
Version published
Maintainers
1
Created
Source

Next.js + Transpile node_modules

Transpile untranspiled modules from your node_modules. Makes it easy to have local libraries and keep a slick, manageable dev experience.

⚠️ The main difference with @weco/next-plugin-transpile-modules is this one support Next's with-typescript plugin: you can transpile TypeScript files.

Installation

npm install --save next-plugin-transpile-modules

or

yarn add next-plugin-transpile-modules

Usage

Classic:

// next.config.js
const withTM = require('next-plugin-transpile-modules');

module.exports = withTM({
  transpileModules: ['somemodule', 'oranother']
});

With with-typescript:

const withTypescript = require('@zeit/next-typescript');
const withTM = require('./plugins/with-transpiled-modules');

module.exports = withTypescript(
  withTM({
    transpileModules: ['somemodule', 'oranother']
  })
);

Keywords

next

FAQs

Package last updated on 09 Aug 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.