mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +03:00
js: Let ESBuild handle all imports from node_modules
This commit fixes some issues where modules in /assets share the same name as in node_modules. This was not intended, and with this commit the node_modules-components should be isolated. If you want to redefine something inside node_modules, use the `defines` option. Fixes #7948
This commit is contained in:
parent
5e03f644a4
commit
78f227b664
6 changed files with 26 additions and 46 deletions
|
@ -76,7 +76,7 @@ func (t *toCSSTransformation) Transform(ctx *resources.ResourceTransformationCtx
|
|||
if prev == "stdin" {
|
||||
prevDir = baseDir
|
||||
} else {
|
||||
prevDir = t.c.sfs.MakePathRelative(filepath.Dir(prev))
|
||||
prevDir, _ = t.c.sfs.MakePathRelative(filepath.Dir(prev))
|
||||
|
||||
if prevDir == "" {
|
||||
// Not a member of this filesystem. Let LibSASS handle it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue