Skip to content

Commit 21afc23

Browse files
author
Ben Jervis
authored
Move webpack extracted file (#783)
1 parent 4fb9a2c commit 21afc23

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

.changeset/large-emus-lick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@vanilla-extract/webpack-plugin': patch
3+
---
4+
5+
Remove the `extracted` entrypoint from the webpack plugin.

packages/webpack-plugin/extracted/package.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/webpack-plugin/package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
"module": "./loader/dist/vanilla-extract-webpack-plugin-loader.esm.js",
1515
"default": "./loader/dist/vanilla-extract-webpack-plugin-loader.cjs.js"
1616
},
17-
"./extracted": {
18-
"module": "./extracted/dist/vanilla-extract-webpack-plugin-extracted.esm.js",
19-
"default": "./extracted/dist/vanilla-extract-webpack-plugin-extracted.cjs.js"
20-
},
2117
"./virtualFileLoader": {
2218
"module": "./virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.esm.js",
2319
"default": "./virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js"
@@ -27,15 +23,14 @@
2723
"entrypoints": [
2824
"index.ts",
2925
"loader.ts",
30-
"extracted.js",
3126
"virtualFileLoader.ts"
3227
]
3328
},
3429
"files": [
3530
"/dist",
3631
"/loader",
37-
"/extracted",
38-
"/virtualFileLoader"
32+
"/virtualFileLoader",
33+
"extracted.js"
3934
],
4035
"repository": {
4136
"type": "git",

packages/webpack-plugin/src/loader.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ const virtualLoader = require.resolve(
2020
),
2121
);
2222

23-
const emptyCssExtractionFile = require.resolve(
24-
path.join(path.dirname(require.resolve('../../package.json')), 'extracted'),
23+
const emptyCssExtractionFile = path.join(
24+
path.dirname(require.resolve('../../package.json')),
25+
'extracted.js',
2526
);
2627

2728
interface LoaderOptions {

0 commit comments

Comments
 (0)