@deot/dev-builder 2.2.0 → 2.2.2

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/dist/index.cjs.js CHANGED
@@ -37,6 +37,7 @@ function _interopNamespaceDefault(e) {
37
37
  }
38
38
 
39
39
  const path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
40
+ const sass__namespace = /*#__PURE__*/_interopNamespaceDefault(sass);
40
41
 
41
42
  const dirname$1 = path__namespace.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href))));
42
43
  const run$3 = async (options) => {
@@ -119,7 +120,7 @@ const run$2 = async (options) => {
119
120
  (preProcess, file) => {
120
121
  preProcess = preProcess.then(() => {
121
122
  let filepath = path__namespace.resolve(srcDir, file);
122
- const data = sass.compile(filepath, { style: "compressed" });
123
+ const data = sass__namespace.compile(filepath, { style: "compressed" });
123
124
  return postcss().use(atImport()).use(atUrl()).use(flexBugs()).use(cssnano()).use(autoprefixer({ remove: false })).process(data.css, { from: filepath });
124
125
  }).then((source) => {
125
126
  let output = path__namespace.resolve(packageDir, `./dist/${file.replace(/\.scss$/g, ".css")}`);
package/dist/index.es.js CHANGED
@@ -6,7 +6,7 @@ import chalk from 'chalk';
6
6
  import ora from 'ora';
7
7
  import { fileURLToPath } from 'node:url';
8
8
  import { build as build$1 } from 'vite';
9
- import sass from 'sass';
9
+ import * as sass from 'sass';
10
10
  import postcss from 'postcss';
11
11
  import atImport from 'postcss-import';
12
12
  import atUrl from 'postcss-url';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/dev-builder",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "main": "dist/index.es.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
package/shared.config.ts CHANGED
@@ -6,6 +6,7 @@ import atUrl from "postcss-url";
6
6
  import flexBugs from "postcss-flexbugs-fixes";
7
7
  import cssnano from "cssnano";
8
8
  import autoprefixer from "autoprefixer";
9
+ import type { UserConfig } from "vite";
9
10
 
10
11
  const cwd = process.cwd();
11
12
 
@@ -78,4 +79,4 @@ export default defineConfig({
78
79
  },
79
80
  rollupOptions: { external }
80
81
  }
81
- });
82
+ }) as UserConfig;