ninegrid2 6.1287.0 → 6.1289.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rollup.config.js +5 -10
package/package.json
CHANGED
package/rollup.config.js
CHANGED
|
@@ -3,7 +3,6 @@ import commonjs from "@rollup/plugin-commonjs";
|
|
|
3
3
|
import postcss from 'rollup-plugin-postcss';
|
|
4
4
|
import json from '@rollup/plugin-json';
|
|
5
5
|
import url from '@rollup/plugin-url';
|
|
6
|
-
// string 플러그인이 문제를 일으키면 아래 설정을 확인하세요.
|
|
7
6
|
import { string } from 'rollup-plugin-string';
|
|
8
7
|
|
|
9
8
|
export default {
|
|
@@ -28,15 +27,14 @@ export default {
|
|
|
28
27
|
json(),
|
|
29
28
|
|
|
30
29
|
// 2. SVG 처리 (순수 문자열 유지)
|
|
31
|
-
//
|
|
32
|
-
// npm install -D @rollup/plugin-image 설치 후 image({ include: '**/*.svg' })로 교체하세요.
|
|
30
|
+
// string 플러그인이 모듈화 코드를 붙이지 않도록 최상단에 배치합니다.
|
|
33
31
|
string({
|
|
34
32
|
include: '**/*.svg',
|
|
35
33
|
}),
|
|
36
34
|
|
|
37
35
|
// 3. 이미지 에셋
|
|
38
36
|
url({
|
|
39
|
-
// ⭐ 중요: SVG가 url 플러그인에 의해 Base64
|
|
37
|
+
// ⭐ 중요: SVG가 url 플러그인에 의해 Base64 데이터로 변하지 않도록 확실히 제외합니다.
|
|
40
38
|
exclude: '**/*.svg',
|
|
41
39
|
include: ['**/*.png', '**/*.jpg', '**/*.gif'],
|
|
42
40
|
limit: 8192,
|
|
@@ -46,8 +44,6 @@ export default {
|
|
|
46
44
|
postcss({
|
|
47
45
|
extract: false,
|
|
48
46
|
minimize: true,
|
|
49
|
-
// CKEditor 모듈 내의 CSS를 처리하기 위해 필수
|
|
50
|
-
modules: false,
|
|
51
47
|
use: ['sass'],
|
|
52
48
|
}),
|
|
53
49
|
|
|
@@ -61,10 +57,9 @@ export default {
|
|
|
61
57
|
|
|
62
58
|
// 6. CommonJS (순서 중요: resolve 뒤에 배치)
|
|
63
59
|
commonjs({
|
|
64
|
-
//
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
extensions: ['.js', '.cjs']
|
|
60
|
+
// ⭐ 중요: SVG 문자열이 CommonJS 모듈로 오해받아 래핑되는 것을 방지합니다.
|
|
61
|
+
exclude: [ '**/*.svg' ],
|
|
62
|
+
include: /node_modules/
|
|
68
63
|
}),
|
|
69
64
|
]
|
|
70
65
|
};
|