You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

rollup-plugin-tsc-alias

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-tsc-alias

Replace alias paths with relative paths after typescript compilation during rollup bundling (tsc-alias)


Version published
Maintainers
1
Created

Readme

Source

Rollup plugin: tsc-alias

Replace alias paths with relative paths after typescript compilation during rollup bundling

Installation

npm

npm install rollup-plugin-tsc-alias --save-dev

yarn

yarn add rollup-plugin-tsc-alias --dev

Example

To run tsc-alias after TS built add the following to rollup.config.js:

import tscAlias from 'rollup-plugin-tsc-alias';

export default {
  entry: './src/index.ts',
  output: {
    dest: './dist/bundle.js',
  },
  plugins: [
    tscAlias()
  ]
};

Here are all the available options:

OptionDescriptionDefault Value
configFilepath to tsconfig.json'tsconfig.json'
watchObserve file changesfalse
outDirRun in a folder leaving the "outDir" of the tsconfig.json (relative path to tsconfig)tsconfig.compilerOptions.outDir
declarationDirWorks the same as outDir but for declarationDirtsconfig.compilerOptions.declarationDir
resolveFullPathsAttempt to replace incomplete import paths (those not ending in .js) with fully resolved paths (for ECMAScript Modules compatibility)false
silentReduced terminal output. This is a deprecated option and no longer has any effect.true
verboseAdditional information is output to the terminalfalse
replacersFiles to import as extra replacers More info[]
outputThe output object tsc-alias will send logs to.new Output(options.verbose)

License

MIT

Keywords

FAQs

Package last updated on 06 Apr 2022

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

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc