Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fdc626e

Browse files
committedMay 29, 2020
module: Test that code still runs when loader is in place
1 parent c4f2cf9 commit fdc626e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎test/message/esm_loader_success.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Flags: --experimental-loader ./test/fixtures/es-module-loaders/transform-source.mjs
2+
import '../common/index.mjs';
3+
import { message } from '../fixtures/es-modules/message.mjs';
4+
console.log(message);

‎test/message/esm_loader_success.out

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(node:*) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
2+
(Use `node --trace-warnings ...` to show where the warning was created)
3+
A MESSAGE

0 commit comments

Comments
 (0)