We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0baa3e commit 7177040Copy full SHA for 7177040
tasks/test_requirejs.mjs
@@ -1,4 +1,4 @@
1
-var JSDOM = require('jsdom').JSDOM;
+import { JSDOM } from 'jsdom';
2
global.document = new JSDOM('<!DOCTYPE html><head></head><html><body></body></html>').window.document;
3
global.window = document.defaultView;
4
global.window.document = global.document;
@@ -8,7 +8,7 @@ global.DOMParser = global.window.DOMParser;
8
global.getComputedStyle = global.window.getComputedStyle;
9
global.window.URL.createObjectURL = function() {};
10
11
-var requirejs = require('requirejs');
+import requirejs from 'requirejs';
12
13
requirejs.config({
14
paths: {
0 commit comments