Skip to content

Commit

Permalink
fix: use module path for runtimeConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
liximomo committed May 6, 2020
1 parent 9a86edc commit 014072f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/shuvi/src/api/setupApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export async function setupApp(api: Api) {
require.resolve('@shuvi/runtime-core/lib/lib/telestore'),
'telestore'
);
api.addAppExport(require.resolve('shuvi/lib/lib/runtimeConfig'), [

// don not use absolute path, this mpdule would't be bundle
api.addAppExport('shuvi/lib/lib/runtimeConfig', [
'setRuntimeConfig',
{
imported: 'default',
Expand Down

0 comments on commit 014072f

Please sign in to comment.