Skip to content

Commit

Permalink
chore: 🤖 changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Mar 30, 2023
1 parent f1bb406 commit 76ccb22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-roses-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rspack/core": patch
---

expose util for compiler.webpack
16 changes: 4 additions & 12 deletions examples/basic/rspack.config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
const { util } = compiler.webpack;
console.log(typeof util.createHash);
let content = "something else";
let hash = util.createHash("xxhash64").update(content).digest();
console.log(hash);
}
}
/**
* @type {import('@rspack/cli').Configuration}
*/
module.exports = {
context: __dirname,
entry: {
main: "./src/index.js"
main: './src/index.js'
},
builtins: {
html: [
{
template: "./index.html"
template: './index.html'
}
]
},
plugins: [new Plugin()]
};
}
}

0 comments on commit 76ccb22

Please sign in to comment.