Skip to content

Commit

Permalink
fix: Upgrade to elm-css-modules-plugin v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zioroboco committed Oct 29, 2018
1 parent 19840dc commit 174b8c9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
12 changes: 6 additions & 6 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -996,16 +996,16 @@ elliptic@^6.0.0:
minimalistic-crypto-utils "^1.0.0"

"elm-css-modules-loader@file:..":
version "3.0.2"
version "3.0.3"
dependencies:
"@babel/core" "^7.1.0"
elm-css-modules-plugin "^0.1.5"
elm-css-modules-plugin "^0.2.0"
loader-utils "^1.1.0"

elm-css-modules-plugin@^0.1.5:
version "0.1.5"
resolved "https://registry.yarnpkg.com/elm-css-modules-plugin/-/elm-css-modules-plugin-0.1.5.tgz#a10dd105454890f4dfd218359289ec8a00dfddfc"
integrity sha512-nLMH0x+XUEmfkC0mh9rWQBNSlaIe2w5xdAY8tJTCpCcw7uQsSUky3XmfIzvsD2cohuYQOTefbxYUvvVU6pgvpA==
elm-css-modules-plugin@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/elm-css-modules-plugin/-/elm-css-modules-plugin-0.2.0.tgz#b99f21d85dab80fce17e2fa733f60c0e6335ff89"
integrity sha512-M8zXZh2ZVHwMG3Gc9tu3zWVOXlni1SonLSNFS8VrkL8KxGMb0dfo2M/YwfWsADnMuHoGN1aLJQHBf68dCc9ssw==
dependencies:
"@babel/core" "^7.0.0"

Expand Down
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ const loader = function(source, inputSourceMap) {

function transform(source, loaderContext, transformerOptions, babelOptions) {
babelOptions.plugins = [
elmCssModulesPlugin.withOptions({
taggerName: transformerOptions.taggerName,
}),
[elmCssModulesPlugin, { taggerName: transformerOptions.taggerName }],
];

const { code, map } = babel.transform(source, babelOptions);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
},
"dependencies": {
"@babel/core": "^7.1.0",
"elm-css-modules-plugin": "^0.1.5",
"elm-css-modules-plugin": "^0.2.0",
"loader-utils": "^1.1.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1397,10 +1397,10 @@ ecc-jsbn@~0.1.1:
dependencies:
jsbn "~0.1.0"

elm-css-modules-plugin@^0.1.5:
version "0.1.5"
resolved "https://registry.yarnpkg.com/elm-css-modules-plugin/-/elm-css-modules-plugin-0.1.5.tgz#a10dd105454890f4dfd218359289ec8a00dfddfc"
integrity sha512-nLMH0x+XUEmfkC0mh9rWQBNSlaIe2w5xdAY8tJTCpCcw7uQsSUky3XmfIzvsD2cohuYQOTefbxYUvvVU6pgvpA==
elm-css-modules-plugin@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/elm-css-modules-plugin/-/elm-css-modules-plugin-0.2.0.tgz#b99f21d85dab80fce17e2fa733f60c0e6335ff89"
integrity sha512-M8zXZh2ZVHwMG3Gc9tu3zWVOXlni1SonLSNFS8VrkL8KxGMb0dfo2M/YwfWsADnMuHoGN1aLJQHBf68dCc9ssw==
dependencies:
"@babel/core" "^7.0.0"

Expand Down

0 comments on commit 174b8c9

Please sign in to comment.