raw-loader

This commit is contained in:
Nathan Bierema 2020-12-19 16:48:07 -05:00
parent bb8e199d72
commit 0e0f4f4ce5
3 changed files with 9 additions and 6 deletions

View File

@ -58,7 +58,7 @@
"gitbook-cli": "^2.3.0", "gitbook-cli": "^2.3.0",
"jest": "^26.2.2", "jest": "^26.2.2",
"pug-html-loader": "^1.1.5", "pug-html-loader": "^1.1.5",
"raw-loader": "^0.5.1", "raw-loader": "^4.0.2",
"react-addons-test-utils": "^15.4.1", "react-addons-test-utils": "^15.4.1",
"react-transform-catch-errors": "^1.0.0", "react-transform-catch-errors": "^1.0.0",
"react-transform-hmr": "^1.0.1", "react-transform-hmr": "^1.0.1",

View File

@ -2,7 +2,7 @@ let s = document.createElement('script');
s.type = 'text/javascript'; s.type = 'text/javascript';
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
const script = require('raw-loader!tmp/page.bundle.js'); const { default: script } = require('raw-loader!tmp/page.bundle.js');
s.appendChild(document.createTextNode(script)); s.appendChild(document.createTextNode(script));
(document.head || document.documentElement).appendChild(s); (document.head || document.documentElement).appendChild(s);
s.parentNode.removeChild(s); s.parentNode.removeChild(s);

View File

@ -9411,10 +9411,13 @@ randomfill@^1.0.3:
randombytes "^2.0.5" randombytes "^2.0.5"
safe-buffer "^5.1.0" safe-buffer "^5.1.0"
raw-loader@^0.5.1: raw-loader@^4.0.2:
version "0.5.1" version "4.0.2"
resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-0.5.1.tgz#0c3d0beaed8a01c966d9787bf778281252a979aa" resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-4.0.2.tgz#1aac6b7d1ad1501e66efdac1522c73e59a584eb6"
integrity sha1-DD0L6u2KAclm2Xh793goElKpeao= integrity sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==
dependencies:
loader-utils "^2.0.0"
schema-utils "^3.0.0"
rc@^1.1.2: rc@^1.1.2:
version "1.2.8" version "1.2.8"