Skip to content

cainrus/ts-runtime-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-runtime-loader

ts-runtime loader for webpack

Installation

yarn add ts-runtime-loader

or

npm install ts-runtime-loader

You will also need to install TypeScript if you have not already.

yarn add typescript

or

npm install typescript

Configuration

  1. Create or update webpack.config.js like so:
module.exports = {
  mode: "development",
  devtool: "inline-source-map",
  entry: "./app.ts",
  output: {
    filename: "bundle.js"
  },
  resolve: {
    extensions: [".ts", ".js"]
  },
  module: {
    rules: [
      // ts-runtime-loader must be before ts-loader.
      { test: /\.runtime\.ts$/, loader: "ts-runtime-loader" },
      { test: /\.ts$/, loader: "ts-loader" },
    ]
  }
};

About

ts-runtime loader for webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published