Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

JavaScript · 11 lines · 456 B · at 8396947

// Webpack loader. CommonJS entry (webpack requires loaders synchronously)// that hands off to the ESM core via the async loader API. Works in Next.js// through next.config webpack(config) — see examples/27-nextjs.module.exports = function tsusLoader(source) {  const callback = this.async();  import("./core.js")    .then(({ transformSource }) => {      callback(null, transformSource(source, this.resourcePath));    })    .catch(callback);};