Skip to content

Commit

Permalink
rebase from main
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush987goyal committed Jan 6, 2022
1 parent ca24e29 commit 05c1155
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions examples/js/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<div id="app"></div>
<script>
window.global = window;
window.process = {
env: { DEBUG: undefined },
argv: [],
cwd: () => {},
};
var exports = {};
</script>
<script type="module" src="/src/main.ts"></script>
Expand Down
1 change: 1 addition & 0 deletions examples/js/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true,
"paths": {
"@environments/*": ["../../environments/*"]
}
Expand Down
8 changes: 4 additions & 4 deletions examples/js/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ export default defineConfig({
server: {
port: 3001,
},
define: {
'process.env': process.env,
'process.argv': [],
},
resolve: {
preserveSymlinks: true,
alias: [
{
find: '@environments',
replacement: path.resolve(__dirname, '../../environments/'),
},
{
find: './runtimeConfig',
replacement: './runtimeConfig.browser',
},
],
},
});

0 comments on commit 05c1155

Please sign in to comment.