mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
352 B
TypeScript
20 lines
352 B
TypeScript
import { runLoaders, getContext } from 'loader-runner';
|
|
|
|
const option = {
|
|
resource: 'test.js',
|
|
loaders: [{
|
|
request: 'test.js'
|
|
}],
|
|
context: './lib/',
|
|
readResource: function () {
|
|
}
|
|
};
|
|
|
|
runLoaders(option, function (err, result) {
|
|
if (err) {
|
|
console.log(err, result);
|
|
}
|
|
});
|
|
|
|
getContext('sdlfkjaldfjiojsdf');
|