@@ -97,7 +97,7 @@ export default function getConfig({ middleware }: Options = {}) {
9797 function registerPlugin (
9898 desc : string ,
9999 plugin : WebpackPluginInstance ,
100- disable ?: boolean
100+ disable ?: boolean ,
101101 ) {
102102 if ( disable ) {
103103 console . log ( "Disabling plugin: " , desc ) ;
@@ -136,7 +136,7 @@ export default function getConfig({ middleware }: Options = {}) {
136136 "define React" ,
137137 new ProvidePlugin ( {
138138 React : "react" ,
139- } )
139+ } ) ,
140140 ) ;
141141
142142 if ( MEASURE ) {
@@ -220,25 +220,8 @@ export default function getConfig({ middleware }: Options = {}) {
220220 // anywhere in that library:
221221 "@cocalc/frontend" : resolve ( "node_modules" , "@cocalc/frontend" ) ,
222222 // This entities/maps alias is needed due to a weird markdown-it import
223- // that webpack 5 won't resolve:
223+ // that webpack5 won't resolve:
224224 "entities/maps" : resolve ( "node_modules/entities/lib/maps" ) ,
225- // This is needed due to k3d's snapshot.js making assumptions
226- // about how npm (and now pnpm!) works, which are violated for us, about where fflate
227- // ends up getting installed. Due to hoisting they aren't right.
228- // We don't even actually use snapshot.js, since we disable that
229- // functionality in k3d. This workaround should be robust due to
230- // our use of total hoisting via links that pnpm uses (as configured
231- // in .npmrc).
232- "../../../../node_modules/requirejs/require" : resolve (
233- ".." ,
234- "node_modules" ,
235- ".pnpm/requirejs@2.3.6/node_modules/requirejs/require"
236- ) ,
237- "../../../../node_modules/fflate/umd/index" : resolve (
238- ".." ,
239- "node_modules" ,
240- ".pnpm/fflate@0.7.3/node_modules/fflate/umd/index"
241- ) ,
242225 } ,
243226 // So we can "import 'file'" instead of "import 'file.tsx'"
244227 extensions : [
0 commit comments