Skip to content

Commit

Permalink
module: Test that code still runs when loader is in place
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell committed May 29, 2020
1 parent c4f2cf9 commit fdc626e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/message/esm_loader_success.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Flags: --experimental-loader ./test/fixtures/es-module-loaders/transform-source.mjs
import '../common/index.mjs';
import { message } from '../fixtures/es-modules/message.mjs';
console.log(message);
3 changes: 3 additions & 0 deletions test/message/esm_loader_success.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(node:*) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
A MESSAGE

0 comments on commit fdc626e

Please sign in to comment.