oc-external-dependencies-handler
Advanced tools
Comparing version 1.0.10 to 1.1.0
import type { Configuration } from 'webpack'; | ||
declare const externalDependenciesHandler: (dependencies: Record<string, string>) => Configuration['externals']; | ||
declare const externalDependenciesHandler: ( | ||
dependencies: Record<string, string> | ||
) => Configuration['externals']; | ||
export = externalDependenciesHandler; |
@@ -24,5 +24,5 @@ 'use strict'; | ||
return [ | ||
(context, req, callback) => { | ||
if (matcher.test(req)) { | ||
let dependencyName = req; | ||
({ request }, callback) => { | ||
if (matcher.test(request)) { | ||
let dependencyName = request; | ||
if (/^(?!@).*\//g.test(dependencyName)) { | ||
@@ -29,0 +29,0 @@ dependencyName = dependencyName.substring( |
{ | ||
"name": "oc-external-dependencies-handler", | ||
"version": "1.0.10", | ||
"version": "1.1.0", | ||
"description": "External dependencies handler for webpack", | ||
@@ -38,3 +38,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "24ad81a2692832b389c36503d31e9016d4e17417" | ||
"gitHead": "a28de7210094eb958ad17e06fd6c964f53c6d45a" | ||
} |
3538
44