wip(dev): Working on webpack alias config
This commit is contained in:
parent
58932564c4
commit
5ea44d2cea
1 changed files with 4 additions and 2 deletions
|
@ -66,13 +66,15 @@ const config = {
|
||||||
'plugin-versionfree-svg',
|
'plugin-versionfree-svg',
|
||||||
]) {
|
]) {
|
||||||
fsConfig.resolve.alias[`@freesewing/${plugin}`] = path.resolve(
|
fsConfig.resolve.alias[`@freesewing/${plugin}`] = path.resolve(
|
||||||
`../../plugins/${plugin}/src/index.mjs`
|
__dirname,
|
||||||
|
`plugins/${plugin}/src/index.mjs`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
// Load these from source, rather than compiled package
|
// Load these from source, rather than compiled package
|
||||||
for (const pkg of ['core', 'i18n', 'models', 'snapseries']) {
|
for (const pkg of ['core', 'i18n', 'models', 'snapseries']) {
|
||||||
fsConfig.resolve.alias[`@freesewing/${pkg}`] = path.resolve(
|
fsConfig.resolve.alias[`@freesewing/${pkg}`] = path.resolve(
|
||||||
`../../packages/${pkg}/src/index.mjs`
|
__dirname,
|
||||||
|
`packages/${pkg}/src/index.mjs`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue