There's no way to <link rel=preload> a Web Worker. This fixes that.
npm i -S gist:developit/567dde2346d785b2628224fddbf6783c
<!-- workers are now just a normal script preload: -->
<link rel=preload href=/path/to/worker.js as=script crossorigin>| module.exports = { | |
| components: 'src/components/**/[A-Z]*.js', | |
| webpackConfig: { | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.jsx?$/, | |
| exclude: /node_modules/, | |
| loader: "babel-loader" | |
| } |
| { | |
| "presets": [ | |
| [ | |
| "@babel/env", | |
| { | |
| "modules": false, | |
| "useBuiltIns": "usage", | |
| "corejs": 3 | |
| } | |
| ], |
| { | |
| "name": "sample-react-component-library", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "keywords": [], | |
| "author": "", |
| import React, { Component } from 'react' | |
| class Index extends Component { | |
| render() { | |
| return ( | |
| <div className="container"> | |
| <h1>Braintree Next.js App</h1> | |
| <style jsx>{` | |
| .loading-container { |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |