This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": [ | |
[ | |
"@babel/preset-env", | |
{ | |
"modules": false, | |
"targets": { | |
"browsers": "ie >= 11" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ConcatSource } = require('webpack-sources') | |
class ImportTimingPlugin { | |
constructor(options = {}) { | |
this.options = options | |
} | |
apply(compiler) { | |
compiler.hooks.compilation.tap('ImportTimingPlugin', (compilation) => { | |
compilation.hooks.processAssets.tap( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Worker } from 'worker_threads' | |
import path from 'path' | |
import chalk from 'next/dist/compiled/chalk' | |
let worker: any | |
function prettyPrint( | |
node: any, | |
distDir: string, | |
prefix = '', |