@@ -73,10 +73,8 @@ const extensionConfig = {
7373 // support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
7474 // mainFields: ['browser', 'module', 'main'], // look for `browser` entry point in imported node modules
7575 mainFields : [ "main" , "module" ] ,
76- extensions : [ ".ts" , ".js" ] ,
76+ extensions : [ ".ts" , ".js" , ".json" ] , // needed to handle a node_module dependency emojilib, which requires json without ext.
7777 alias : {
78- // provides alternate implementation for node module and source files
79- "marked-terminal" : path . resolve ( __dirname , "src/stubs/empty-class.js" ) ,
8078 // "ora": path.resolve(__dirname, 'src/stubs/empty-function.js'),
8179 commander : path . resolve ( __dirname , "src/stubs/empty-class.js" ) ,
8280 inquirer : path . resolve ( __dirname , "src/stubs/inquirer-stub.js" ) ,
@@ -87,7 +85,6 @@ const extensionConfig = {
8785 // This is used for Github deploy to hosting - will need to restore
8886 // or find another solution if we add that feature.
8987 "libsodium-wrappers" : path . resolve ( __dirname , "src/stubs/empty-class.js" ) ,
90- marked : path . resolve ( __dirname , "src/stubs/marked.js" ) ,
9188 } ,
9289 fallback : {
9390 // Webpack 5 no longer polyfills Node.js core modules automatically.
0 commit comments