Skip to content

Commit 94fc3d9

Browse files
committed
fix(pack): support parse ~ prefix for less & sass
1 parent bbacba9 commit 94fc3d9

11 files changed

+72
-1
lines changed

crates/pack-tests/tests/snapshot/node_modules/antd/reset.css

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"config": {
3+
"entry": [
4+
{
5+
"import": "input/index.js",
6+
"name": "main"
7+
}
8+
]
9+
}
10+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import style from './index.less';
2+
3+
style;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import '~antd/reset.css';

crates/pack-tests/tests/snapshot/style/less/output/crates_pack-tests_tests_snapshot_ed9c1e41.css

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pack-tests/tests/snapshot/style/less/output/crates_pack-tests_tests_snapshot_ed9c1e41.css.map

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pack-tests/tests/snapshot/style/less/output/crates_pack-tests_tests_snapshot_style_less_input_02f480f0.js

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pack-tests/tests/snapshot/style/less/output/crates_pack-tests_tests_snapshot_style_less_input_02f480f0.js.map

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push([
2+
typeof document === "object" ? document.currentScript : undefined,
3+
{"otherChunks":["crates_pack-tests_tests_snapshot_ed9c1e41.css","crates_pack-tests_tests_snapshot_style_less_input_02f480f0.js"],"runtimeModuleIds":[15]}
4+
]);
5+
// Dummy runtime

crates/pack-tests/tests/snapshot/style/less/output/main.js.map

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)