We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c73ef commit fa3f62aCopy full SHA for fa3f62a
packages/preset-built-in/src/plugins/generateFiles/core/plugin.ts
@@ -24,11 +24,14 @@ export default function (api: IApi) {
24
],
25
});
26
27
- const appRuntimeFilePath = getFile({
28
- base: paths.absSrcPath!,
29
- fileNameWithoutExt: 'app',
30
- type: 'javascript',
31
- })?.path;
+ const appRuntimeFilePath =
+ process.env.RUNTIME_APP_JS !== 'none'
+ ? getFile({
+ base: paths.absSrcPath!,
+ fileNameWithoutExt: 'app',
32
+ type: 'javascript',
33
+ })?.path
34
+ : undefined;
35
const plugins = await api.applyPlugins({
36
key: 'addRuntimePlugin',
37
type: api.ApplyPluginsType.add,
0 commit comments