band aid fix for process is not defined
This commit is contained in:
parent
505ad17447
commit
9fac2c3c33
4 changed files with 46 additions and 2 deletions
|
|
@ -1,2 +1,4 @@
|
|||
<script src="https://unpkg.com/@strudel/repl@0.9.1"></script>
|
||||
<strudel-repl></strudel-repl>
|
||||
<!-- <script src="https://unpkg.com/@strudel/repl@latest"></script> -->
|
||||
<!-- <script src="https://unpkg.com/@strudel/repl@0.9.3"></script> -->
|
||||
<script src="../dist/index.js"></script>
|
||||
<strudel-editor code='s("bd")'></strudel-editor>
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
},
|
||||
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
||||
"dependencies": {
|
||||
"@rollup/plugin-replace": "^5.0.5",
|
||||
"@strudel.cycles/core": "workspace:*",
|
||||
"@strudel.cycles/midi": "workspace:*",
|
||||
"@strudel.cycles/mini": "workspace:*",
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import { defineConfig } from 'vite';
|
|||
import { dependencies } from './package.json';
|
||||
import { resolve } from 'path';
|
||||
// import { visualizer } from 'rollup-plugin-visualizer';
|
||||
import replace from '@rollup/plugin-replace';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
|
|
@ -15,6 +16,12 @@ export default defineConfig({
|
|||
},
|
||||
rollupOptions: {
|
||||
// external: [...Object.keys(dependencies)],
|
||||
plugins: [
|
||||
replace({
|
||||
'process.env.NODE_ENV': JSON.stringify('production'),
|
||||
preventAssignment: true,
|
||||
}),
|
||||
],
|
||||
},
|
||||
target: 'esnext',
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue