You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please tell me how to import a local folder in the file system? For example, I want to import the local node_modules into the jsh terminal through mount. Is it possible? I see that the specific file content is written directly in the files object in the document.
The text was updated successfully, but these errors were encountered:
Just like the files object. Does it support importing folders?
constfiles={// This is a directory - provide its name as a keysrc: {// Because it's a directory, add the "directory" keydirectory: {// This is a file - provide its path as a key:'main.js': {// Because it's a file, add the "file" keyfile: {contents: ` console.log('Hello from WebContainers!') `,},},// This is another file inside the same folder'main.css': {// Because it's a file, add the "file" keyfile: {contents: ` body { margin: 0; } `,},},},},// This is a file outside the folder'package.json': {/* Omitted for brevity */},// This is another file outside the folder'index.html': {/* Omitted for brevity */},};
Could you please tell me how to import a local folder in the file system? For example, I want to import the local node_modules into the jsh terminal through mount. Is it possible? I see that the specific file content is written directly in the files object in the document.
The text was updated successfully, but these errors were encountered: