UNPKG

esbuild-plugin-tsc

Version:

An esbuild plugin which uses tsc to compile typescript files.

46 lines (35 loc) 1.21 kB
import React, { Component } from 'react' import { withRouter } from 'react-router-dom' import { connect } from 'react-redux' import { something } from "@some-module/anything" import { foo, bar, fooBar } from 'foo-bar' import { anotherThing } from '@another-module/something' import { Controller, Get } from '@nestjs/common'; import { AppService } from './app.service'; const javaScriptWay = require( '@legacy/registry' ) const javaScriptDoubleQuotes = require("@single/double") const makingThisHard = require ( "@please-install/prettier") @Controller() export class AppController { constructor(private readonly appService: AppService) {} @Get('/some-route') getData() { return this.appService.getData(); } @horr1bl3Name('talent', null) getBent() { return "Hey, 1337 Classnames, like all the cool kids do" } @ParamlessDecorator ugh() { return `Like we need this?`; } @f @g itCanAllBeOneLine() { return 'Seriously?' } const what = 'Is this even valid JS?'@decorateThis fn() const probablyNot = 'I would hope this isadfasdfdsfa'@crazySituation fn() const butThisIsValid = "Stuff all on one line";@deckTheHalls() @Second decoratedObject }