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 1d89f73 commit 8e4c73dCopy full SHA for 8e4c73d
tools/pfe-tools/dev-server/plugins/pfe-dev-server.ts
@@ -130,6 +130,11 @@ function getRouter(options: PfeDevServerInternalConfig) {
130
return next();
131
})
132
133
+ // Redirect `core/pfe-core/controllers/thingy.js` to `core/pfe-core/controllers/thingy.ts` for requests not previously handled
134
+ .get(`/core/pfe-core/:splatPath*.js`, async ctx => {
135
+ ctx.redirect(`/core/pfe-core/${ctx.params.splatPath}.ts`);
136
+ })
137
+
138
// Redirect `elements/pf-jazz-hands/*.js` to `elements/pf-jazz-hands/*.ts` for requests not previously handled
139
.get(`/${elementsDir}/:element/:splatPath*.js`, async ctx => {
140
const { element, splatPath } = ctx.params;
0 commit comments