Skip to content

Commit

Permalink
Test for wrong import-meta slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Oct 29, 2022
1 parent f518bec commit 7bfb73f
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 0 deletions.
@@ -0,0 +1 @@
export const url = import.meta.url;
@@ -0,0 +1,6 @@
module.exports = {
description: 'supports nested numeric paths without issues on Windows',
options: {
output: { preserveModules: true }
}
};
@@ -0,0 +1,7 @@
define(['module', 'exports'], (function (module, exports) { 'use strict';

const url = new URL(module.uri, document.baseURI).href;

exports.url = url;

}));
@@ -0,0 +1,7 @@
define(['exports', './0/1/nested'], (function (exports, nested) { 'use strict';



exports.url = nested.url;

}));
@@ -0,0 +1,5 @@
'use strict';

const url = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('0/1/nested.js', document.baseURI).href));

exports.url = url;
@@ -0,0 +1,7 @@
'use strict';

var nested = require('./0/1/nested.js');



exports.url = nested.url;
@@ -0,0 +1,3 @@
const url = import.meta.url;

export { url };
@@ -0,0 +1 @@
export { url } from './0/1/nested.js';
@@ -0,0 +1,10 @@
System.register([], (function (exports, module) {
'use strict';
return {
execute: (function () {

const url = exports('url', module.meta.url);

})
};
}));
@@ -0,0 +1,13 @@
System.register(['./0/1/nested.js'], (function (exports) {
'use strict';
return {
setters: [function (module) {
exports('url', module.url);
}],
execute: (function () {



})
};
}));
@@ -0,0 +1 @@
export { url } from './0/1/nested.js';

0 comments on commit 7bfb73f

Please sign in to comment.