diff --git a/.swcrc b/.swcrc new file mode 100644 index 0000000..22f53ba --- /dev/null +++ b/.swcrc @@ -0,0 +1,20 @@ +{ + "$schema": "https://swc.rs/schema.json", + "module": { + "type": "es6", + // These are defaults. + "strict": false, + "strictMode": true, + "lazy": false, + "noInterop": false + }, + "jsc": { + "target": "es2015", + "parser": { + "syntax": "typescript", + "tsx": false, + "decorators": false, + "dynamicImport": false + } + } +} \ No newline at end of file diff --git a/demo/fluid.js b/demo/fluid.js index c7478a2..ba71a93 100644 --- a/demo/fluid.js +++ b/demo/fluid.js @@ -4,10 +4,10 @@ * https://github.com/hvianna/audioMotion-analyzer */ -import AudioMotionAnalyzer from '../src/audioMotion-analyzer.js'; +import AudioMotionAnalyzer from '../dist/esm/index.mjs'; const audioEl = document.getElementById('audio'), - presetSelection = document.getElementById('presets'); + presetSelection = document.getElementById('presets'); // Visualization presets const presets = [ @@ -233,133 +233,133 @@ try { { source: audioEl, // main audio source is the HTML