@nativue/core 0.14.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/nativue.mjs +3 -1
- package/package.json +1 -1
package/cli/nativue.mjs
CHANGED
|
@@ -220,10 +220,12 @@ function viteConfig({ mode, plugins = [] }) {
|
|
|
220
220
|
finishBundle(mode),
|
|
221
221
|
...plugins,
|
|
222
222
|
],
|
|
223
|
-
// Compiled templates and app code import from 'vue': point them to the native renderer.
|
|
223
|
+
// Compiled templates and app code import from 'vue': point them to the native renderer. A package
|
|
224
|
+
// installed from a folder with its own node_modules gets the app's @nativue/core too, not a second one.
|
|
224
225
|
resolve: {
|
|
225
226
|
alias: [
|
|
226
227
|
{ find: /^vue$/, replacement: frameworkPath('src/renderer.ts') },
|
|
228
|
+
{ find: /^@nativue\/core$/, replacement: frameworkPath('src/renderer.ts') },
|
|
227
229
|
{ find: /^@nativue\/core\/router$/, replacement: frameworkPath('src/router.ts') },
|
|
228
230
|
{ find: /^@\//, replacement: `${process.cwd()}/src/` },
|
|
229
231
|
],
|