Socket
Socket
Sign inDemoInstall

ts-loader

Package Overview
Dependencies
Maintainers
3
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-loader - npm Package Compare versions

Comparing version 9.0.0 to 9.0.1

4

CHANGELOG.md
# Changelog
## v9.0.1
* [Use correct hook for emitting additional assets during compilation](https://github.com/TypeStrong/ts-loader/pull/1286) - thanks @jonwallsten
## v9.0.0

@@ -4,0 +8,0 @@

15

dist/instances.js

@@ -7,2 +7,3 @@ "use strict";

const path = require("path");
const webpack = require("webpack");
const after_compile_1 = require("./after-compile");

@@ -199,5 +200,10 @@ const compilerSetup_1 = require("./compilerSetup");

const makeAssetsCallback = (compilation) => {
compilation.hooks.afterProcessAssets.tap('ts-loader', () => cachedMakeAfterCompile(compilation, () => {
return null;
}));
compilation.hooks.processAssets.tap({
name: 'ts-loader',
stage: webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL,
}, () => {
cachedMakeAfterCompile(compilation, () => {
return null;
});
});
};

@@ -209,5 +215,2 @@ // We need to add the hook above for each run.

loader._compiler.hooks.compilation.tap('ts-loader', makeAssetsCallback);
// It may be better to add assets at the processAssets stage (https://webpack.js.org/api/compilation-hooks/#processassets)
// This requires Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL, which does not exist in webpack4
// Consider changing this when ts-loader is built using webpack5
}

@@ -214,0 +217,0 @@ function initializeInstance(loader, instance) {

{
"name": "ts-loader",
"version": "9.0.0",
"version": "9.0.1",
"description": "TypeScript loader for webpack",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc