Skip to content

Commit

Permalink
Try to init the wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Aug 6, 2023
1 parent 4edb69c commit 3955f44
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions apps/repl/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ module.exports = async function (defaults) {
// Causes app to not boot
// chunkFormat: 'module',
// },
module: {
rules: [
{
test: /\.wasm$/,
type: "asset",
},
]
},
resolve: {
alias: {
path: 'path-browserify',
Expand Down
5 changes: 4 additions & 1 deletion packages/ember-repl/addon/src/browser/gjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import type { Babel } from './types';

const compiler = importSync('ember-source/dist/ember-template-compiler.js');

import { Preprocessor } from 'content-tag';
import init, { Preprocessor } from 'content-tag';


await init();

const processor = new Preprocessor();

Expand Down

0 comments on commit 3955f44

Please sign in to comment.