Skip to content

Commit 31778cd

Browse files
committed
loader: emit warning
1 parent 4a29525 commit 31778cd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/internal/modules/esm/translators.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ translators.set('module-typescript', function(url, translateContext, parentURL)
645645

646646
// Strategy for loading source as text.
647647
translators.set('text', function textStrategy(url, translateContext) {
648+
emitExperimentalWarning('Text import');
648649
let { source } = translateContext;
649650
assertBufferSource(source, true, 'load');
650651
source = stringify(source);

0 commit comments

Comments
 (0)