1
0
Fork 0

wip(dev): Working on webpack alias config

This commit is contained in:
Joost De Cock 2024-09-28 14:09:32 +02:00
parent 58932564c4
commit 5ea44d2cea

View file

@ -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`
) )
} }