Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5ea5530

Browse files
committed
Update dependencies
1 parent 4e7d90e commit 5ea5530

File tree

6 files changed

+39962
-9805
lines changed

6 files changed

+39962
-9805
lines changed

‎README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
This is a template repository demonstrating the use of sql.js with create-react-app.
44

55
The only differences with a traditional create-react-app application are :
6-
- The usage of [react-app-rewired](https://www.npmjs.com/package/react-app-rewired) to allow providing a custom [webpack](https://webpack.js.org/) configuration
7-
- a custom [`config-overrides.js`](./config-overrides.js) to copy the wasm module from sql.js to the distributed assets
6+
- The usage of [craco](https://github.com/gsoft-inc/craco) to allow providing a custom [webpack](https://webpack.js.org/) configuration
7+
- a custom [`craco.config.js`](./craco.config.js) to copy the wasm module from sql.js to the distributed assets
88

99
Note that you should make sure your server serves `.wasm` files with the right mimetype, that is: `application/wasm`. Otherwise, you'll see the following warning in the console: `TypeError: Response has unsupported MIME type`
1010

‎config-overrides.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎craco.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
webpack: {
3+
configure:{
4+
// See https://github.com/webpack/webpack/issues/6725
5+
module:{
6+
rules: [{
7+
test: /\.wasm$/,
8+
type: 'javascript/auto',
9+
}]
10+
}
11+
}
12+
}
13+
};

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /