@@ -97,7 +97,7 @@ export default function getConfig({ middleware }: Options = {}) {
97
97
function registerPlugin (
98
98
desc : string ,
99
99
plugin : WebpackPluginInstance ,
100
- disable ?: boolean
100
+ disable ?: boolean ,
101
101
) {
102
102
if ( disable ) {
103
103
console . log ( "Disabling plugin: " , desc ) ;
@@ -136,7 +136,7 @@ export default function getConfig({ middleware }: Options = {}) {
136
136
"define React" ,
137
137
new ProvidePlugin ( {
138
138
React : "react" ,
139
- } )
139
+ } ) ,
140
140
) ;
141
141
142
142
if ( MEASURE ) {
@@ -220,25 +220,8 @@ export default function getConfig({ middleware }: Options = {}) {
220
220
// anywhere in that library:
221
221
"@cocalc/frontend" : resolve ( "node_modules" , "@cocalc/frontend" ) ,
222
222
// 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:
224
224
"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/[email protected] /node_modules/requirejs/require"
236
- ) ,
237
- "../../../../node_modules/fflate/umd/index" : resolve (
238
- ".." ,
239
- "node_modules" ,
240
- ".pnpm/[email protected] /node_modules/fflate/umd/index"
241
- ) ,
242
225
} ,
243
226
// So we can "import 'file'" instead of "import 'file.tsx'"
244
227
extensions : [
0 commit comments