From 2872b362ff76273d897d75bb8a3ddd5510c182f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 2 May 2020 15:51:08 +0200 Subject: BREAKING: disallow static import of local modules from remote modules (#5050) This commit changes module loading logic to disallow statically import local module (file:// scheme) from remote modules (http://, https:// schemes). --- cli/tests/error_local_static_import_from_remote.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 cli/tests/error_local_static_import_from_remote.js (limited to 'cli/tests/error_local_static_import_from_remote.js') diff --git a/cli/tests/error_local_static_import_from_remote.js b/cli/tests/error_local_static_import_from_remote.js new file mode 100644 index 000000000..eb7fd23ba --- /dev/null +++ b/cli/tests/error_local_static_import_from_remote.js @@ -0,0 +1 @@ +import "file:///some/dir/file.js"; -- cgit v1.2.3