Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 28, 2024 via pnpm

ts-loader 9.4.4

TypeScript loader for webpack
Package summary
Share
2
issues
1
high severity
license
1
1
low severity
license
1
6
licenses
74
MIT
7
BSD-2-Clause
6
ISC
7
other licenses
Apache-2.0
3
BSD-3-Clause
3
CC-BY-4.0
1
Package created
21 Jan 2015
Version published
28 Jun 2023
Maintainers
3
Total deps
94
Direct deps
6
License
MIT

Issues

2

1 high severity issue

high
Recommendation: Read and validate the license terms
via: webpack@5.91.0
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: webpack@5.91.0
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
74 Packages, Including:
@jridgewell/gen-mapping@0.3.5
@jridgewell/resolve-uri@3.1.2
@jridgewell/set-array@1.2.1
@jridgewell/source-map@0.3.6
@jridgewell/sourcemap-codec@1.4.15
@jridgewell/trace-mapping@0.3.25
@types/eslint-scope@3.7.7
@types/eslint@8.56.10
@types/estree@1.0.5
@types/json-schema@7.0.15
@types/node@20.12.7
@webassemblyjs/ast@1.12.1
@webassemblyjs/floating-point-hex-parser@1.11.6
@webassemblyjs/helper-api-error@1.11.6
@webassemblyjs/helper-buffer@1.12.1
@webassemblyjs/helper-numbers@1.11.6
@webassemblyjs/helper-wasm-bytecode@1.11.6
@webassemblyjs/helper-wasm-section@1.12.1
@webassemblyjs/ieee754@1.11.6
@webassemblyjs/utf8@1.11.6
@webassemblyjs/wasm-edit@1.12.1
@webassemblyjs/wasm-gen@1.12.1
@webassemblyjs/wasm-opt@1.12.1
@webassemblyjs/wasm-parser@1.12.1
@webassemblyjs/wast-printer@1.12.1
acorn-import-assertions@1.9.0
acorn@8.11.3
ajv-keywords@3.5.2
ajv@6.12.6
ansi-styles@4.3.0
braces@3.0.2
browserslist@4.23.0
buffer-from@1.1.2
chalk@4.1.2
chrome-trace-event@1.0.3
color-convert@2.0.1
color-name@1.1.4
commander@2.20.3
enhanced-resolve@5.16.0
es-module-lexer@1.5.2
escalade@3.1.2
events@3.3.0
fast-deep-equal@3.1.3
fast-json-stable-stringify@2.1.0
fill-range@7.0.1
has-flag@4.0.0
is-number@7.0.0
jest-worker@27.5.1
json-parse-even-better-errors@2.3.1
json-schema-traverse@0.4.1

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
eslint-scope@5.1.1
esrecurse@4.3.0
estraverse@4.3.0
estraverse@5.3.0
glob-to-regexp@0.4.1
terser@5.30.4
uri-js@4.4.1

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
electron-to-chromium@1.4.750
graceful-fs@4.2.11
lru-cache@6.0.0
picocolors@1.0.0
semver@7.6.0
yallist@4.0.0

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
3 Packages, Including:
@webassemblyjs/leb128@1.11.6
@xtuc/long@4.2.2
typescript@5.4.5

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
@xtuc/ieee754@1.2.0
serialize-javascript@6.0.2
source-map@0.6.1

Creative Commons Attribution 4.0 International

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
caniuse-lite@1.0.30001614
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

6
All Dependencies CSV
β“˜ This is a list of ts-loader 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
chalk4.1.211.31 kBMIT
prod
enhanced-resolve5.16.0205.49 kBMIT
prod
micromatch4.0.514.09 kBMIT
prod
semver7.6.026.57 kBISC
prod
typescript5.4.530.87 MBApache-2.0
prod peer
webpack5.91.04.71 MBMIT
prod peer
1
1

Visualizations

Frequently Asked Questions

What does ts-loader do?

The "ts-loader" is a TypeScript loader for webpack, allowing seamless integration of TypeScript with webpack projects. It acts as a bridge between the TypeScript compiler and webpack, enabling webpack to consume TypeScript files and output JavaScript that can run in the browser. The ts-loader supports TypeScript compiler options, webpack watch, HMR (Hot Module Replacement), as well as other functionalities to enhance the work process.

How do you use ts-loader?

To use "ts-loader", we first install it via npm or yarn:

npm install ts-loader --save-dev

# or if you are using yarn
yarn add ts-loader --dev

You also need to install TypeScript if you haven't:

npm install typescript --save-dev

# or if you are using yarn
yarn add typescript --dev

Finally, modify your webpack configuration (for example, in webpack.config.js) to include ts-loader in the module rules. This instructs webpack to pass .ts and .tsx files to ts-loader:

module.exports = {
  mode: "development",
  devtool: "inline-source-map",
  resolve: {
    extensions: [".ts", ".tsx", ".js"]
  },
  module: {
    rules: [
      { 
        test: /\.tsx?$/, 
        use: [
          {
            loader: 'ts-loader',
            options: {
              transpileOnly: true
            }
          }
        ],
        exclude: /node_modules/
      }
    ]
  },
};

The configuration above tells webpack to process files ending with .ts or .tsx with ts-loader.

Additionally, the options: { transpileOnly: true } configuration is used to speed up compilation by using the transpile-only mode. This will not perform type checking and only emit JavaScript code.

Keep in mind, however, that while this significantly speeds up the build process, it also omits all types from the TypeScript compiler. You may want to use fork-ts-checker-webpack-plugin along with ts-loader to get the benefits of type checking while maintaining the fast build time.

Where are the ts-loader docs?

The official documentation for ts-loader can be found on its GitHub repository. The README file includes a comprehensive guide on installation, usage, and a detailed explanation of all available options. The examples directory of the repository provides samples of configurations with different scenarios, providing a hands-on approach to understanding the usage of the ts-loader.