ts-loader
Advanced tools
Comparing version 9.0.0 to 9.0.1
# 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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
249398
3092