Skip to content

Commit

Permalink
Revert wasm pack for now because we run into vercel/next.js#32612
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Mar 10, 2022
1 parent 04c4977 commit 98e7f13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/Generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ export type GenerateOptions = {
}

export async function generate(options: GenerateOptions) {
const hybrid = true,
legacy = false
const hybrid = false,
legacy = true
const cwd = options.cwd || process.cwd()
const configLocation = path.join(cwd, options.config || './alinea.config.tsx')
const outdir = path.join(cwd, options.outdir || './.alinea')
Expand Down
25 changes: 0 additions & 25 deletions packages/website/next.config.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,5 @@
module.exports = {
webpack: (config, {buildId, dev, isServer, defaultLoaders, webpack}) => {
config.experiments = {
...config.experiments,
topLevelAwait: true,
asyncWebAssembly: true
}

// https://github.com/vercel/next.js/issues/25852#issuecomment-1057059000
config.plugins.push({
apply(compiler) {
compiler.hooks.afterEmit.tapPromise(
'SymlinkWebpackPlugin',
async compiler => {
if (isServer) {
const {join} = require('path')
const {copySync} = require('fs-extra')
const actual = join(compiler.options.output.path, 'static')
const expected = join(compiler.options.output.path, '../static')
copySync(actual, expected)
console.log(`copied ${actual} -> ${expected}`)
}
}
)
}
})

// https://github.com/vercel/next.js/issues/17806#issuecomment-913437792
config.module.rules.push({
test: /\.m?js$/,
Expand Down

0 comments on commit 98e7f13

Please sign in to comment.