Skip to content

Commit d3b44ab

Browse files
author
Ives van Hoorne
committed
Fix babel example
1 parent eb07c30 commit d3b44ab

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed
18.5 KB
Loading
8.75 KB
Loading

packages/app/integration-tests/tests/sandboxes.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ const SANDBOXES = [
2323
'6w66jzw3mn', // material-design & preact
2424
'4j7m47vlm4', // material-ui
2525
'github/cssinjs/egghead/tree/master/from-sass-to-cssinjs/templates-and-variables', // postcss egghead
26+
'xp5qy8r93q', // babel example
27+
'angular', // angular template
2628
];
2729

2830
function pageLoaded(page) {

standalone-packages/codesandbox-browserfs/src/backend/CodeSandboxFS.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export default class CodeSandboxFS extends SynchronousFileSystem
165165

166166
if (!moduleInfo) {
167167
const modulesStartingWithPath = Object.keys(tModules).filter(
168-
(pa: string) => pa.startsWith(p + '/') || pa === p
168+
(pa: string) => pa.startsWith(p.endsWith('/') ? p : p + '/') || pa === p
169169
);
170170

171171
if (modulesStartingWithPath.length > 0) {
@@ -239,9 +239,8 @@ export default class CodeSandboxFS extends SynchronousFileSystem
239239

240240
const p = path.endsWith('/') ? path : path + '/';
241241

242-
const pathsInDir = paths.filter(
243-
(secondP: string) => secondP.startsWith(p + '/') || secondP === p
244-
);
242+
const pathsInDir = paths.filter((secondP: string) => secondP.startsWith(p));
243+
245244
if (pathsInDir.length === 0) {
246245
return [];
247246
}

0 commit comments

Comments
 (0)