doc-inline-preview.html (753B)
1 <!-- This Source Code Form is subject to the terms of the Mozilla Public 2 - License, v. 2.0. If a copy of the MPL was not distributed with this 3 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 4 <!DOCTYPE html> 5 <html> 6 <head> 7 <meta charset="utf-8"/> 8 <title>Debugger Inline Preview</title> 9 </head> 10 11 <body> 12 <button onclick="onBtnClick(event)">Click me!</button> 13 14 <script src="inline-preview.js"></script> 15 <script type="module"> 16 import data from "./data.json" with { type: "json" }; 17 window.runInModule = function() { 18 bar(4); 19 } 20 function bar(val) { 21 const ids = data.map(({id}) => id) 22 console.log(val, ids); 23 debugger; 24 } 25 </script> 26 </body> 27 </html>