Skip to content

Commit 174b8c9

Browse files
committed
fix: Upgrade to elm-css-modules-plugin v0.2.0
1 parent 19840dc commit 174b8c9

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

example/yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -996,16 +996,16 @@ elliptic@^6.0.0:
996996
minimalistic-crypto-utils "^1.0.0"
997997

998998
"elm-css-modules-loader@file:..":
999-
version "3.0.2"
999+
version "3.0.3"
10001000
dependencies:
10011001
"@babel/core" "^7.1.0"
1002-
elm-css-modules-plugin "^0.1.5"
1002+
elm-css-modules-plugin "^0.2.0"
10031003
loader-utils "^1.1.0"
10041004

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

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ const loader = function(source, inputSourceMap) {
4141

4242
function transform(source, loaderContext, transformerOptions, babelOptions) {
4343
babelOptions.plugins = [
44-
elmCssModulesPlugin.withOptions({
45-
taggerName: transformerOptions.taggerName,
46-
}),
44+
[elmCssModulesPlugin, { taggerName: transformerOptions.taggerName }],
4745
];
4846

4947
const { code, map } = babel.transform(source, babelOptions);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
},
8888
"dependencies": {
8989
"@babel/core": "^7.1.0",
90-
"elm-css-modules-plugin": "^0.1.5",
90+
"elm-css-modules-plugin": "^0.2.0",
9191
"loader-utils": "^1.1.0"
9292
},
9393
"devDependencies": {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,10 +1397,10 @@ ecc-jsbn@~0.1.1:
13971397
dependencies:
13981398
jsbn "~0.1.0"
13991399

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

0 commit comments

Comments
 (0)