We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fe83b3 commit 8127fbfCopy full SHA for 8127fbf
examples/loader/enhanced-require.config.js
@@ -0,0 +1,7 @@
1
+module.exports = {
2
+ module: {
3
+ loaders: [
4
+ { test: /\.json$/, loader: "json" }
5
+ ]
6
+ }
7
+}
examples/loader/example.js
@@ -1,6 +1,3 @@
-// Polyfill require for node.js usage of loaders
-require = require("enhanced-require")(module);
-
// use our loader
console.dir(require("./loader!./file"));
examples/loader/template.md
@@ -30,7 +30,7 @@
30
31
# Console output
32
33
-Prints in node.js (`node example.js`) and in browser:
+Prints in node.js (`enhanced-require example.js`) and in browser:
34
35
```
36
{ answer: 42, foo: 'bar' }
0 commit comments