Skip to content

Commit

Permalink
Add node --loader example :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard committed Nov 17, 2024
1 parent 04c2421 commit ab76f2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/loader/loader.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import _ from 'lodash@4.17.21';
console.log(`_.add(1, 2) = ${_.add(1, 2)}`);
5 changes: 5 additions & 0 deletions examples/loader/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set -e

npm remove -g use-m
npm i -g use-m@8.10.15
node --loader "$(use --lp)" loader.mjs

0 comments on commit ab76f2c

Please sign in to comment.