-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove parcel-plugin-text; inline our own variant
- Loading branch information
Dominic Dagradi
authored and
Dominic Dagradi
committed
Dec 30, 2020
1 parent
342c40d
commit 7f3d9b3
Showing
8 changed files
with
20 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const { Asset } = require('parcel-bundler') | ||
|
||
module.exports = class TextAsset extends Asset { | ||
constructor(name, pkg, options) { | ||
super(name, pkg, options) | ||
this.type = 'js' | ||
} | ||
|
||
generate() { | ||
const content = JSON.stringify(this.contents); | ||
|
||
return [{ type: 'js', value: `module.exports = ${content}` }] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ | |
"out", | ||
"node_modules" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2704,7 +2704,7 @@ [email protected], core-util-is@~1.0.0: | |
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" | ||
integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= | ||
|
||
cosmiconfig@^5.0.0, cosmiconfig@^5.0.2: | ||
cosmiconfig@^5.0.0: | ||
version "5.2.1" | ||
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" | ||
integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== | ||
|
@@ -5608,11 +5608,6 @@ log-symbols@^2.2.0: | |
dependencies: | ||
chalk "^2.0.1" | ||
|
||
loglevel@^1.6.1: | ||
version "1.7.1" | ||
resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.7.1.tgz#005fde2f5e6e47068f935ff28573e125ef72f197" | ||
integrity sha512-Hesni4s5UkWkwCGJMQGAh71PaLUmKFM60dHvq0zi/vDhhrzuk+4GgNbTXJ12YYQJn6ZKBDNIjYcuQGKudvqrIw== | ||
|
||
loose-envify@^1.1.0, loose-envify@^1.4.0: | ||
version "1.4.0" | ||
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" | ||
|
@@ -6306,14 +6301,6 @@ parcel-bundler@^1.12.4: | |
v8-compile-cache "^2.0.0" | ||
ws "^5.1.1" | ||
|
||
parcel-plugin-text@^0.9.7: | ||
version "0.9.7" | ||
resolved "https://registry.yarnpkg.com/parcel-plugin-text/-/parcel-plugin-text-0.9.7.tgz#826d32f4860d16e1915f61842f212f466aca9643" | ||
integrity sha512-/YTROA74LHLDOnltAbbRYLJ6AkdIA+fLUmZBCE2knzUv0IyDrofl+il0hiA7/wmtut7XkuwIb+RxGWwSOgYiOA== | ||
dependencies: | ||
cosmiconfig "^5.0.2" | ||
loglevel "^1.6.1" | ||
|
||
parcel@^1.12.4: | ||
version "1.12.4" | ||
resolved "https://registry.yarnpkg.com/parcel/-/parcel-1.12.4.tgz#c8136085179c6382e632ca98126093e110be2ac5" | ||
|